Update app.py
Browse files
app.py
CHANGED
@@ -125,11 +125,12 @@ class InterestCalculatorApp:
|
|
125 |
tokenized_query = self.tokenizer.tokenize(query)
|
126 |
|
127 |
# Encode tokens and convert them to PyTorch tensors
|
128 |
-
inputs = self.tokenizer(table=df_tokenized,
|
129 |
|
130 |
return inputs
|
131 |
|
132 |
|
|
|
133 |
def main():
|
134 |
st.title("Interest Calculation App")
|
135 |
|
|
|
125 |
tokenized_query = self.tokenizer.tokenize(query)
|
126 |
|
127 |
# Encode tokens and convert them to PyTorch tensors
|
128 |
+
inputs = self.tokenizer(table=df_tokenized, queries=tokenized_query, return_tensors="pt", padding=True)
|
129 |
|
130 |
return inputs
|
131 |
|
132 |
|
133 |
+
|
134 |
def main():
|
135 |
st.title("Interest Calculation App")
|
136 |
|