abidlabs HF staff commited on
Commit
a8c061e
1 Parent(s): 811467e

Fix state being shared across sessions

Browse files

As reported here: https://huggingface.co/spaces/microsoft/visual_chatgpt/discussions/9, sessions are being shared across users. This is because of this bug: https://github.com/gradio-app/gradio/pull/3600, which has been fixed. But since this Space is using an older version of Gradio, fixing manually as well

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -203,4 +203,4 @@ with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
203
  clear.click(lambda: [], None, chatbot)
204
  clear.click(lambda: [], None, state)
205
 
206
- demo.queue(concurrency_count=10).launch(server_name="0.0.0.0", server_port=7860)
 
203
  clear.click(lambda: [], None, chatbot)
204
  clear.click(lambda: [], None, state)
205
 
206
+ demo.queue(concurrency_count=10).launch(server_name="0.0.0.0", server_port=7860)