Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,8 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
| 7 |
if not HF_TOKEN:
|
| 8 |
raise ValueError("HF_TOKEN environment variable not set. Please set it before running the app.")
|
| 9 |
|
| 10 |
-
# Initialize the client for the Coldet backend
|
| 11 |
-
coldet_client = Client("Coldet/backend",
|
| 12 |
|
| 13 |
# --- Helper Functions ---
|
| 14 |
|
|
|
|
| 7 |
if not HF_TOKEN:
|
| 8 |
raise ValueError("HF_TOKEN environment variable not set. Please set it before running the app.")
|
| 9 |
|
| 10 |
+
# Initialize the client for the Coldet backend with HF_TOKEN in headers
|
| 11 |
+
coldet_client = Client("Coldet/backend", headers={"Authorization": f"Bearer {HF_TOKEN}"})
|
| 12 |
|
| 13 |
# --- Helper Functions ---
|
| 14 |
|