Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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",
|
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,
|
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 |
|