Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ table = pd.DataFrame.from_dict(data)
|
|
22 |
|
23 |
def launch(input):
|
24 |
encoding = tokenizer(table=table, query=input, return_tensors="pt")
|
25 |
-
|
26 |
return tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
27 |
|
28 |
iface = gr.Interface(launch,
|
|
|
22 |
|
23 |
def launch(input):
|
24 |
encoding = tokenizer(table=table, query=input, return_tensors="pt")
|
25 |
+
outputs=model.generate(**encoding)
|
26 |
return tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
27 |
|
28 |
iface = gr.Interface(launch,
|