devccazares commited on
Commit
56d09d3
·
1 Parent(s): 39917e3
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,8 @@ from huggingface_hub import InferenceClient
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
- client = InferenceClient("Qwen/Qwen2.5-Coder-7B-Instruct")
 
8
 
9
 
10
  def respond(
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
+ hf_token = os.getenv("user_token")
8
+ client = InferenceClient("Qwen/Qwen2.5-Coder-7B-Instruct", token=hf_token)
9
 
10
 
11
  def respond(