Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ with gr.Blocks() as demo:
|
|
53 |
|
54 |
with gr.Row():
|
55 |
with gr.Column():
|
56 |
-
text_input_schema = gr.
|
57 |
text_input_question = gr.Textbox(label="question")
|
58 |
generate_btn = gr.Button("Create Sql Query")
|
59 |
|
@@ -64,7 +64,7 @@ with gr.Blocks() as demo:
|
|
64 |
generate_btn.click(
|
65 |
fn=generate_sql_query,
|
66 |
inputs=[text_input_schema,text_input_question],
|
67 |
-
outputs=[
|
68 |
)
|
69 |
|
70 |
if __name__ == "__main__":
|
|
|
53 |
|
54 |
with gr.Row():
|
55 |
with gr.Column():
|
56 |
+
text_input_schema = gr.TextArea(label="Schema")
|
57 |
text_input_question = gr.Textbox(label="question")
|
58 |
generate_btn = gr.Button("Create Sql Query")
|
59 |
|
|
|
64 |
generate_btn.click(
|
65 |
fn=generate_sql_query,
|
66 |
inputs=[text_input_schema,text_input_question],
|
67 |
+
outputs=[output]
|
68 |
)
|
69 |
|
70 |
if __name__ == "__main__":
|