Update app.py
Browse files
app.py
CHANGED
@@ -114,8 +114,9 @@ class InterestCalculatorApp:
|
|
114 |
# Tokenize each row in the table
|
115 |
for row in table:
|
116 |
tokenized_row = []
|
117 |
-
for cell in row.
|
118 |
-
|
|
|
119 |
tokenized_table.append(tokenized_row)
|
120 |
|
121 |
# Create DataFrame from tokenized table
|
@@ -130,7 +131,6 @@ class InterestCalculatorApp:
|
|
130 |
return inputs
|
131 |
|
132 |
|
133 |
-
|
134 |
def main():
|
135 |
st.title("Interest Calculation App")
|
136 |
|
|
|
114 |
# Tokenize each row in the table
|
115 |
for row in table:
|
116 |
tokenized_row = []
|
117 |
+
for column_name, cell in row.items():
|
118 |
+
# Ensure that the cell is converted to a string before tokenizing
|
119 |
+
tokenized_row.append(self.tokenizer.tokenize(str(cell)))
|
120 |
tokenized_table.append(tokenized_row)
|
121 |
|
122 |
# Create DataFrame from tokenized table
|
|
|
131 |
return inputs
|
132 |
|
133 |
|
|
|
134 |
def main():
|
135 |
st.title("Interest Calculation App")
|
136 |
|