jinhybr commited on
Commit
86c493f
·
verified ·
1 Parent(s): 8e3f06a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -57,7 +57,9 @@ def text_to_sql(text):
57
  # Create Gradio Interface
58
  iface = gr.Interface(
59
  fn=text_to_sql,
 
60
  inputs=gr.inputs.Textbox(lines=7, label="User Question"),
 
61
  outputs=gr.outputs.Textbox(label="SQL Query"),
62
  title="Text to SQL Translator",
63
  description="Translate text to SQL query based on the provided schema."
 
57
  # Create Gradio Interface
58
  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."