Spaces:
Sleeping
Sleeping
Andre
commited on
Commit
·
d0fe6ef
1
Parent(s):
a77822b
Update
Browse files
config.py
CHANGED
|
@@ -4,12 +4,12 @@ import os
|
|
| 4 |
##
|
| 5 |
|
| 6 |
# Retrieve the Hugging Face token
|
| 7 |
-
try:
|
| 8 |
# Try to get the token from Colab secrets
|
| 9 |
-
api_token = userdata.get("HF_CTB_TOKEN")
|
| 10 |
-
except ImportError:
|
| 11 |
# Fall back to environment variable (for local execution)
|
| 12 |
-
|
| 13 |
|
| 14 |
# Debugging: Check if the Hugging Face token is available
|
| 15 |
if not api_token:
|
|
|
|
| 4 |
##
|
| 5 |
|
| 6 |
# Retrieve the Hugging Face token
|
| 7 |
+
#try:
|
| 8 |
# Try to get the token from Colab secrets
|
| 9 |
+
# api_token = userdata.get("HF_CTB_TOKEN")
|
| 10 |
+
#except ImportError:
|
| 11 |
# Fall back to environment variable (for local execution)
|
| 12 |
+
api_token = os.getenv("HF_CTB_TOKEN")
|
| 13 |
|
| 14 |
# Debugging: Check if the Hugging Face token is available
|
| 15 |
if not api_token:
|