Update app.py
Browse files
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."
|