Error while running the interface.
I am using the Hugging Face model Qwen/Qwen2.5-Coder-32B-Instruct with a Gradio interface. When trying to generate a response, I get the following error: Invalid username or password. After this, the application throws a Python exception: File ".../Gradio_UI.py", line 145, in stream_to_gradio How can I properly handle this error and fix the token authentication issue?
401 Client Error: Unauthorized for url: /static-proxy?url=https%3A%2F%2Frouter.huggingface.co%2Fhf-inference%2Fmodels%2FQwen%2FQwen2.5-Coder-32B-Instruct%2Fv1%2Fchat%2Fcompletions%3C%2Fa%3E%3C%2Fp%3E
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
total_input_tokens += agent.model.last_input_token_count
same error in my case
solved with "Create a secret with the name HF_TOKEN"
