Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
|
7 |
tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
|
8 |
|
9 |
-
query = "
|
10 |
|
11 |
def main(filepath, query):
|
12 |
|
@@ -19,11 +19,9 @@ iface = gr.Interface(
|
|
19 |
fn=main,
|
20 |
inputs=[
|
21 |
gr.File(type="filepath", label="Upload csv"),
|
22 |
-
gr.Textbox(type="text", label="
|
23 |
],
|
24 |
-
outputs=[gr.Textbox(type="text", label="
|
25 |
-
title="TM TableQA Test",
|
26 |
-
description="Upload csv file and ask a qudstion, and the processed output will be displayed.",
|
27 |
)
|
28 |
|
29 |
# Launch the Gradio interface
|
|
|
6 |
|
7 |
tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
|
8 |
|
9 |
+
query = "How many points did Jaylen Brown score?"
|
10 |
|
11 |
def main(filepath, query):
|
12 |
|
|
|
19 |
fn=main,
|
20 |
inputs=[
|
21 |
gr.File(type="filepath", label="Upload csv"),
|
22 |
+
gr.Textbox(type="text", label="What do you want to know?"),
|
23 |
],
|
24 |
+
outputs=[gr.Textbox(type="text", label="The output will be here" , lines=3)]
|
|
|
|
|
25 |
)
|
26 |
|
27 |
# Launch the Gradio interface
|