Spaces:
Runtime error
Runtime error
Update _app.py
Browse files
_app.py
CHANGED
@@ -8,10 +8,10 @@ import paramiko
|
|
8 |
from huggingface_hub import login
|
9 |
|
10 |
# Hugging Face Token
|
11 |
-
HF_TOKEN = os.getenv('
|
12 |
|
13 |
if not HF_TOKEN:
|
14 |
-
raise ValueError("
|
15 |
|
16 |
# Hugging Face Login
|
17 |
login(token=HF_TOKEN)
|
|
|
8 |
from huggingface_hub import login
|
9 |
|
10 |
# Hugging Face Token
|
11 |
+
HF_TOKEN = os.getenv('HF_TOKEN', '').strip()
|
12 |
|
13 |
if not HF_TOKEN:
|
14 |
+
raise ValueError("HUGGING_TOKEN is not set. Please set the token as an environment variable.")
|
15 |
|
16 |
# Hugging Face Login
|
17 |
login(token=HF_TOKEN)
|