albhu commited on
Commit
a7587d7
·
verified ·
1 Parent(s): 551b1e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.values():
118
- tokenized_row.append(self.tokenizer.tokenize(str(cell))) # Convert cell to string before tokenizing
 
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