albhu commited on
Commit
c99ae18
·
verified ·
1 Parent(s): e554cac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ class InterestCalculatorApp:
39
  predicted_answer = self.tokenizer.decode(outputs.logits.argmax(dim=-1))
40
  return predicted_answer
41
 
42
- def main():
43
  st.title("Interest Calculation App")
44
  file_path = st.file_uploader("Upload Invoices File", type=["xlsx"])
45
  if file_path is not None:
@@ -57,4 +57,4 @@ class InterestCalculatorApp:
57
 
58
  if __name__ == "__main__":
59
  app = InterestCalculatorApp()
60
- app.main()
 
39
  predicted_answer = self.tokenizer.decode(outputs.logits.argmax(dim=-1))
40
  return predicted_answer
41
 
42
+ def main(self):
43
  st.title("Interest Calculation App")
44
  file_path = st.file_uploader("Upload Invoices File", type=["xlsx"])
45
  if file_path is not None:
 
57
 
58
  if __name__ == "__main__":
59
  app = InterestCalculatorApp()
60
+ app.main() # Corrected call