Joshnicholas commited on
Commit
6961637
1 Parent(s): 7e27ec9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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 = "what is the highest delta onu rx power?"
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="Enter text"),
23
  ],
24
- outputs=[gr.Textbox(type="text", label="Text Input Output")],
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