Free-Auto-GPT
Free-Auto-GPT copied to clipboard
RuntimeError: The model is currently loading, please re-run the query.
File "/home/mahmoud/Projects/gpt/venv/lib/python3.8/site-packages/retry/api.py", line 33, in __retry_internal return f() File "/home/mahmoud/Projects/gpt/Embedding/HuggingFaceEmbedding.py", line 33, in newEmbeddings raise RuntimeError( RuntimeError: The model is currently loading, please re-run the query.
hi i have same issue , i debug the code the problem is the hugging face token , they probably have change something and it stop work because i receive in output the header is valid and token no. i try create new account in hugging face but the site no permit submit the request
Hi, Refer #67 and see if changing the model_id helps
hi ajaix i try but same error , the problem is not the model but api token, if you debug can see the error appear
ok i see the code again and now whith modify of ajaix i resolve, thank you!
ok i see the code again and now whith modify of ajaix i resolve, thank you!
i see it still not working how can we fix it ?
{'error': 'Authorization header is correct, but the token seems invalid'}
good morning mah , i get same error and i change the url as say ajaix and after it will work
same error !
@gio98 can you share your solution ? So let's update the code.
hi all in folder embeded modify huggingface.py #read from env the hf token if os.environ.get("HUGGINGFACEHUB_API_TOKEN") is not None: hf_token = os.environ.get("HUGGINGFACEHUB_API_TOKEN") else: raise Exception("You must provide the huggingface token")
#model_id = "sentence-transformers/all-MiniLM-L6-v2" model_id = "obrizum/all-MiniLM-L6-v2" api_url = f"https://api-inference.huggingface.co/pipeline/feature-extraction/{model_id}" headers = {"Authorization": f"Bearer {hf_token}"}
Update, tell us if now work .
any news? Work now ?
Still not working
+1 still not working