teaevo commited on
Commit
7e20218
·
1 Parent(s): 4004cf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="You:"),
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
- chatbot_interface.launch()
80
- sql_interface.launch()
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