Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -17,10 +17,7 @@ import uvicorn
|
|
| 17 |
|
| 18 |
# HuggingFace Inference Client
|
| 19 |
HF_TOKEN = os.getenv("HF_TOKEN", "")
|
| 20 |
-
inference_client = InferenceClient(
|
| 21 |
-
token=HF_TOKEN if HF_TOKEN else None,
|
| 22 |
-
base_url="https://router.huggingface.co/hf-inference"
|
| 23 |
-
)
|
| 24 |
|
| 25 |
# Cloudflare Configuration
|
| 26 |
CLOUDFLARE_CONFIG = {
|
|
|
|
| 17 |
|
| 18 |
# HuggingFace Inference Client
|
| 19 |
HF_TOKEN = os.getenv("HF_TOKEN", "")
|
| 20 |
+
inference_client = InferenceClient(token=HF_TOKEN if HF_TOKEN else None)
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Cloudflare Configuration
|
| 23 |
CLOUDFLARE_CONFIG = {
|