Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
|
|
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)
|