runtime error
Exit code: 1. Reason: /gradio/utils.py", line 1027, in async_wrapper response = await f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/gradio/chat_interface.py", line 1072, 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 2518, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 1002, in run result = context.run(func, *args) File "/app/app.py", line 95, in chat_fn response = chat_client.chat.completions.create(messages=messages) File "/usr/local/lib/python3.13/site-packages/huggingface_hub/inference/_client.py", line 929, 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 282, in _inner_post hf_raise_for_status(response) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 877, 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/v1/chat/completions' (Request ID: Root=1-69ec4711-51e6bc4f743050e105102efa;a8c4e74e-d115-48ed-ab7b-e15ce88f432d) For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401 Invalid username or password.
Container logs:
Fetching error logs...