Update app.py
Browse files
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
|