runtime error
Exit code: 1. Reason: o/utils.py", line 1009, in async_wrapper response = await f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/gradio/chat_interface.py", line 1040, in _examples_fn response = await run_sync(self.fn, *inputs, limiter=self.limiter) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/anyio/to_thread.py", line 63, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ func, args, abandon_on_cancel=abandon_on_cancel, limiter=limiter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 2502, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 986, in run result = context.run(func, *args) File "/app/app.py", line 22, in chat response = client.chat_completion(msgs, max_tokens=1024, temperature=0.7) File "/usr/local/lib/python3.13/site-packages/huggingface_hub/inference/_client.py", line 933, in chat_completion data = self._inner_post(request_parameters, stream=stream) File "/usr/local/lib/python3.13/site-packages/huggingface_hub/inference/_client.py", line 286, in _inner_post hf_raise_for_status(response) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 830, in hf_raise_for_status raise _format(HfHubHTTPError, str(e), response) from e huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface.co/hf-inference/models/mistralai/Mistral-7B-Instruct-v0.2/v1/chat/completions' (Amz CF ID: rrq2S2acGDV6wtl2nqZoWwlTh1RM0CZnWadiSUgYcTlJMlPITblSeg==) For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
Container logs:
Fetching error logs...