Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ chatbot_interface = gr.Interface(
|
|
66 |
# Define the chatbot interface using Gradio
|
67 |
sql_interface = gr.Interface(
|
68 |
fn=sql_response,
|
69 |
-
inputs=gr.Textbox(prompt="
|
70 |
outputs=gr.Textbox(),
|
71 |
live=True,
|
72 |
capture_session=True,
|
@@ -75,7 +75,7 @@ sql_interface = gr.Interface(
|
|
75 |
)
|
76 |
|
77 |
# Launch the Gradio interface
|
78 |
-
if __name__ == "__main__":
|
79 |
-
|
80 |
-
|
81 |
|
|
|
66 |
# Define the chatbot interface using Gradio
|
67 |
sql_interface = gr.Interface(
|
68 |
fn=sql_response,
|
69 |
+
inputs=gr.Textbox(prompt="Enter your SQL Qus:"),
|
70 |
outputs=gr.Textbox(),
|
71 |
live=True,
|
72 |
capture_session=True,
|
|
|
75 |
)
|
76 |
|
77 |
# Launch the Gradio interface
|
78 |
+
#if __name__ == "__main__":
|
79 |
+
chatbot_interface.launch()
|
80 |
+
sql_interface.launch()
|
81 |
|