giustinod commited on
Commit
2753231
·
verified ·
1 Parent(s): 53268fc

Using auth token

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,9 @@ 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
  model_id = "azservice/TestLogica-Pdfs"
8
  client = InferenceClient(model_id, token=hf_token)
9
 
 
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
+ import os
8
+
9
+ hf_token = os.getenv("hf_token")
10
  model_id = "azservice/TestLogica-Pdfs"
11
  client = InferenceClient(model_id, token=hf_token)
12