jinhybr commited on
Commit
b933ab1
·
verified ·
1 Parent(s): 1c29a01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -59,9 +59,9 @@ iface = gr.Interface(
59
  fn=text_to_sql,
60
  #inputs=gr.inputs.Textbox(lines=7, label="User Question"),
61
  #inputs=gr.inputs.Textbox(lines=7, label="User Question"),
62
- inputs = ['How many schools won their last occ championship in 2006?'],
63
- outputs=gr.outputs.Textbox(label="SQL Query"),
64
  title="Text to SQL Translator",
65
- description="Translate text to SQL query based on the provided schema."
66
  )
67
  iface.launch()
 
59
  fn=text_to_sql,
60
  #inputs=gr.inputs.Textbox(lines=7, label="User Question"),
61
  #inputs=gr.inputs.Textbox(lines=7, label="User Question"),
62
+ inputs = ['text'],
63
+ outputs=['text'],
64
  title="Text to SQL Translator",
65
+ description="Translate text to SQL query based on the provided schema.CREATE TABLE table_17429402_7 (school VARCHAR, last_occ_championship VARCHAR)"
66
  )
67
  iface.launch()