geethareddy commited on
Commit
e7bbbb4
·
verified ·
1 Parent(s): fdf7dbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
  )