alexkueck commited on
Commit
ddf0e4f
·
1 Parent(s): 3d43393

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,8 +1,10 @@
1
  from huggingface_hub import InferenceClient
 
2
 
3
  # HF Inference Endpoints parameter
4
  endpoint_url = "https://YOUR_ENDPOINT.endpoints.huggingface.cloud"
5
- hf_token = "hf_YOUR_TOKEN"
 
6
 
7
  # Streaming Client
8
  client = InferenceClient(endpoint_url, token=hf_token)
 
1
  from huggingface_hub import InferenceClient
2
+ import os
3
 
4
  # HF Inference Endpoints parameter
5
  endpoint_url = "https://YOUR_ENDPOINT.endpoints.huggingface.cloud"
6
+
7
+ hf_token = os.getenv("TOKEN_HF")
8
 
9
  # Streaming Client
10
  client = InferenceClient(endpoint_url, token=hf_token)