Traceback (most recent call last):
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 304, in hf_raise_for_status
    response.raise_for_status()
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-1B/v1/chat/completions

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
    output = await app.get_blocks().process_api(
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/blocks.py", line 1935, in process_api
    result = await self.call_function(
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/blocks.py", line 1532, in call_function
    prediction = await utils.async_iteration(iterator)
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/utils.py", line 671, in async_iteration
    return await iterator.__anext__()
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/utils.py", line 776, in asyncgen_wrapper
    response = await iterator.__anext__()
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/chat_interface.py", line 653, in _stream_fn
    first_response = await async_iteration(generator)
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/utils.py", line 671, in async_iteration
    return await iterator.__anext__()
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/utils.py", line 664, in __anext__
    return await anyio.to_thread.run_sync(
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
    return await future
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/gradio/utils.py", line 647, in run_sync_iterator_async
    return next(iterator)
  File "/maahr/home/ameen/samples_rocket/rocketgpt/chatbot.py", line 257, in model_inference
    response = client_llama.chat_completion(func_caller, max_tokens=200)
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/huggingface_hub/inference/_client.py", line 706, in chat_completion
    data = self.post(
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/huggingface_hub/inference/_client.py", line 273, in post
    hf_raise_for_status(response)
  File "/maahr/home/ameen/anaconda3/envs/mistral/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 371, in hf_raise_for_status
    raise HfHubHTTPError(str(e), response=response) from e
huggingface_hub.utils._errors.HfHubHTTPError: 422 Client Error: Unprocessable Entity for url: https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-1B/v1/chat/completions (Request ID: eh2UZo85Cy382UfugWxfd)

Template error: template not found