arpit13 commited on
Commit
8274289
·
verified ·
1 Parent(s): 595d768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -184,7 +184,7 @@ header {
184
  send_button = gr.Button("Send")
185
 
186
  with gr.Row():
187
- chatbot_output = gr.Chatbot(label="Chat History", elem_classes=["chat-container"])
188
 
189
  def handle_chat(user_input, sub_category, history):
190
  if not user_input.strip():
@@ -194,7 +194,7 @@ header {
194
 
195
  send_button.click(
196
  handle_chat,
197
- inputs=[user_input, category_dropdown, chatbot_output],
198
  outputs=[chatbot_output, chatbot_output]
199
  )
200
 
 
184
  send_button = gr.Button("Send")
185
 
186
  with gr.Row():
187
+ chatbot_output = gr.Chatbot(label="Chat History", type="messages")
188
 
189
  def handle_chat(user_input, sub_category, history):
190
  if not user_input.strip():
 
194
 
195
  send_button.click(
196
  handle_chat,
197
+ inputs=[user_input, sub_category, chatbot_output],
198
  outputs=[chatbot_output, chatbot_output]
199
  )
200