Spaces:
Running
Keep getting this error when I try to initiate a conversation
: Exception: Failed to accept ethics modal with status code 403. Non-JSON form requests need to have a referer
Thanks for your report!
Could you give us more context on your configuration? Are you using your own version of the app? Or are you using https://huggingface.co/chat/ or the Space directly?
I am using the hugging chat api for python . This is the code I'm using.
from hugchat import hugchat
chatbot = hugchat.ChatBot(cookie_path="cookies.json") # or cookies=[...]
print(chatbot.chat("HI"))
Create a new conversation
id = chatbot.new_conversation()
chatbot.change_conversation(id)
Get conversation list
conversation_list = chatbot.get_conversation_list()
The solution works fine in google colab but the mentioned error arises when I use a VM
Are you referring to this project ? https://github.com/Soulter/hugging-chat-api
I think you should raise an issue there as this space is for the HuggingChat app only!
All right thank you