Abbasid commited on
Commit
5ffdbdf
1 Parent(s): 868d991

Update TableQAGradio.py

Browse files
Files changed (1) hide show
  1. TableQAGradio.py +1 -3
TableQAGradio.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  from transformers import pipeline
3
  import pandas as pd
4
  import gradio as gr
@@ -32,8 +31,7 @@ def main(model_choice, file_path, text):
32
  iface = gr.Interface(
33
  fn=main,
34
  inputs=[
35
- gr.Dropdown(choices=list(models.keys()), label="Select Model"),
36
- gr.File(type="filepath", label="Upload XLSX file"),
37
  gr.Textbox(type="text", label="Enter text"),
38
  ],
39
  outputs=[gr.Textbox(type="text", label="Text Input Output")],
 
 
1
  from transformers import pipeline
2
  import pandas as pd
3
  import gradio as gr
 
31
  iface = gr.Interface(
32
  fn=main,
33
  inputs=[
34
+ gr.Dropdown(choices=list(models.keys()), label="Select Model", value=list(models.keys())[0]) gr.File(type="filepath", label="Upload XLSX file"),
 
35
  gr.Textbox(type="text", label="Enter text"),
36
  ],
37
  outputs=[gr.Textbox(type="text", label="Text Input Output")],