Spaces:
Sleeping
Sleeping
Using auth token
Browse files
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 |
|