Update app.py
Browse files
app.py
CHANGED
|
@@ -101,6 +101,7 @@ with demo:
|
|
| 101 |
with gr.Row():
|
| 102 |
with gr.Column(scale=1):
|
| 103 |
text_input = gr.Textbox(label="Enter your query")
|
|
|
|
| 104 |
gr.Examples([
|
| 105 |
'Find the correlation between RTT and Jitter for each Market',
|
| 106 |
'Find the variance in Jitter for each 5G_Reliability_Category',
|
|
@@ -121,6 +122,6 @@ with demo:
|
|
| 121 |
else:
|
| 122 |
return gr.update(visible=False), result, message
|
| 123 |
|
| 124 |
-
|
| 125 |
|
| 126 |
demo.launch(debug=True, auth=("admin", "Text2SQL"))
|
|
|
|
| 101 |
with gr.Row():
|
| 102 |
with gr.Column(scale=1):
|
| 103 |
text_input = gr.Textbox(label="Enter your query")
|
| 104 |
+
button = gr.Button("Submit")
|
| 105 |
gr.Examples([
|
| 106 |
'Find the correlation between RTT and Jitter for each Market',
|
| 107 |
'Find the variance in Jitter for each 5G_Reliability_Category',
|
|
|
|
| 122 |
else:
|
| 123 |
return gr.update(visible=False), result, message
|
| 124 |
|
| 125 |
+
button.click(update_output, inputs=text_input, outputs=[output_df, output_text])
|
| 126 |
|
| 127 |
demo.launch(debug=True, auth=("admin", "Text2SQL"))
|