Spaces:
Running
Running
Circhastic
commited on
Commit
•
923595a
1
Parent(s):
c49aa0f
Fix app
Browse files
app.py
CHANGED
@@ -170,12 +170,12 @@ def sales_growth(dataframe, fittedValues):
|
|
170 |
return sales_growth
|
171 |
|
172 |
# TAPAS Model
|
173 |
-
model_name = "google/tapas-large-finetuned-wtq"
|
174 |
-
tokenizer = TapasTokenizer.from_pretrained(model_name)
|
175 |
-
model = TapasForQuestionAnswering.from_pretrained(model_name, local_files_only=False)
|
176 |
|
177 |
@st.cache_resource
|
178 |
def load_tapas_model(model, tokenizer):
|
|
|
|
|
|
|
179 |
pipe = pipeline("table-question-answering", model=model, tokenizer=tokenizer)
|
180 |
return pipe
|
181 |
|
|
|
170 |
return sales_growth
|
171 |
|
172 |
# TAPAS Model
|
|
|
|
|
|
|
173 |
|
174 |
@st.cache_resource
|
175 |
def load_tapas_model(model, tokenizer):
|
176 |
+
model_name = "google/tapas-large-finetuned-wtq"
|
177 |
+
tokenizer = TapasTokenizer.from_pretrained(model_name)
|
178 |
+
model = TapasForQuestionAnswering.from_pretrained(model_name, local_files_only=False)
|
179 |
pipe = pipeline("table-question-answering", model=model, tokenizer=tokenizer)
|
180 |
return pipe
|
181 |
|