macadeliccc commited on
Commit
8d68072
·
1 Parent(s): a505b42

session state

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -61,6 +61,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
61
  chat_history.append((input_message, server_response))
62
  return chat_history
63
 
64
- submit_button.click(fn=update_output, inputs=[input_text, chat_history], outputs=[output_chat])
65
-
 
 
 
66
  app.launch()
 
61
  chat_history.append((input_message, server_response))
62
  return chat_history
63
 
64
+ submit_button.click(
65
+ fn=update_output,
66
+ inputs=[input_text, chat_history], # Ensure both inputs are passed
67
+ outputs=[output_chat]
68
+ )
69
  app.launch()