Open sajjadmosaheb opened 1 week ago
Hi @sajjadmosaheb the reason you are running into this issue is because you have a single thread
instance that is being shared across all of the users of your session. You will need to create separate threads based on the user that is interaction. You can figure out which users is which by looking at the session_hash
of the request, as described here: https://www.gradio.app/docs/gradio/request
We'll add an example in our docs to make this clearer
Hi @abidlabs , Thanks for your response, I saw the demo but can't figure out what's going on, what I should do., and where I add the request function.
Describe the bug
I'm using huggingface space to share my app which is a chatbot based on the openai model. I implemented the Chatinterface methode that should handle the session state automatically. but when I open the app in different device and different user and ask about the history of the chat, it mixing the chat up. what should I do?
thanks in advance Sajjad
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it