Spaces:
Runtime error
Runtime error
Fix state being shared across sessions
Browse filesAs 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
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 |
-
|
|
|
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)
|