Spaces:
Running
Running
Update app/tapex.py
Browse files- app/tapex.py +1 -1
app/tapex.py
CHANGED
@@ -17,7 +17,7 @@ def execute_query(query, csv_file):
|
|
17 |
|
18 |
queries = [query]
|
19 |
|
20 |
-
encoding = tokenizer(table=table, queries=queries, padding=True, return_tensors="pt",
|
21 |
outputs = model.generate(**encoding)
|
22 |
ans = tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
23 |
|
|
|
17 |
|
18 |
queries = [query]
|
19 |
|
20 |
+
encoding = tokenizer(table=table, queries=queries, padding=True, return_tensors="pt",truncation=True)
|
21 |
outputs = model.generate(**encoding)
|
22 |
ans = tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
23 |
|