Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,10 +71,11 @@ demo = gr.Interface(
|
|
| 71 |
fn=respond,
|
| 72 |
inputs=[
|
| 73 |
gr.Textbox(label="User Input", placeholder="Type your message here..."),
|
| 74 |
-
gr.State()
|
| 75 |
],
|
| 76 |
outputs=[
|
| 77 |
-
gr.Chatbot(),
|
|
|
|
| 78 |
],
|
| 79 |
live=True
|
| 80 |
)
|
|
|
|
| 71 |
fn=respond,
|
| 72 |
inputs=[
|
| 73 |
gr.Textbox(label="User Input", placeholder="Type your message here..."),
|
| 74 |
+
gr.State() # State input to maintain conversation history
|
| 75 |
],
|
| 76 |
outputs=[
|
| 77 |
+
gr.Chatbot(type='messages'), # Corrected to use 'messages' type for the chat
|
| 78 |
+
gr.State() # State output to maintain conversation history
|
| 79 |
],
|
| 80 |
live=True
|
| 81 |
)
|