Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ data = {
|
|
| 12 |
table = pd.DataFrame.from_dict(data)
|
| 13 |
|
| 14 |
# tapex accepts uncased input since it is pre-trained on the uncased corpus
|
| 15 |
-
query = "
|
| 16 |
encoding = tokenizer(table=table, query=query, return_tensors="pt")
|
| 17 |
|
| 18 |
outputs = model.generate(**encoding)
|
|
|
|
| 12 |
table = pd.DataFrame.from_dict(data)
|
| 13 |
|
| 14 |
# tapex accepts uncased input since it is pre-trained on the uncased corpus
|
| 15 |
+
query = "how many different countries had election in 21st century?"
|
| 16 |
encoding = tokenizer(table=table, query=query, return_tensors="pt")
|
| 17 |
|
| 18 |
outputs = model.generate(**encoding)
|