patrawtf commited on
Commit
ef21cbc
1 Parent(s): 3720e70

Update app/tapex.py

Browse files
Files changed (1) hide show
  1. 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",truncated=True)
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