arpit13 commited on
Commit
15cc869
·
verified ·
1 Parent(s): 1707119

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -221,14 +221,16 @@ with gr.Blocks(css="""
221
  # Handle category change to update subcategories
222
  main_category.change(update_subcategories, inputs=main_category, outputs=sub_category)
223
 
 
 
 
224
  # Chatbot input and display area
225
  user_input = gr.Textbox(label="Your Message", placeholder="Type something...", lines=1)
226
  send_button = gr.Button("Send")
227
- clear_button = gr.Button("Clear History")
228
  hear_button = gr.Button("Hear Response")
229
  audio_output = gr.Audio(label="Bot's Voice", type="filepath", interactive=False)
230
- # Chatbot UI
231
- chatbot_ui = gr.Chatbot(type="messages")
232
 
233
  history_state = gr.State(load_history())
234
 
 
221
  # Handle category change to update subcategories
222
  main_category.change(update_subcategories, inputs=main_category, outputs=sub_category)
223
 
224
+
225
+ # Chatbot UI
226
+ chatbot_ui = gr.Chatbot(type="messages")
227
  # Chatbot input and display area
228
  user_input = gr.Textbox(label="Your Message", placeholder="Type something...", lines=1)
229
  send_button = gr.Button("Send")
 
230
  hear_button = gr.Button("Hear Response")
231
  audio_output = gr.Audio(label="Bot's Voice", type="filepath", interactive=False)
232
+ clear_button = gr.Button("Clear History")
233
+
234
 
235
  history_state = gr.State(load_history())
236