Spaces:
Runtime error
Runtime error
Here, replace Global with State
#1
by
radames
- opened
You want to avoid share a global state across users.
this is a quick fix on your code, but essentially your predict functions have to be isolated for individual requests(i.e. users)
I'm using here https://gradio.app/docs/#state (gr.State)
Please read more about how Gradio works here https://gradio.app/interface-state/
Merging recommendation to prevent user images from crossing paths.
Omnibus
changed pull request status to
merged