Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ from huggingface_hub import login
|
|
17 |
|
18 |
# --- Login to Hugging Face using secret ---
|
19 |
# Make sure HF_TOKEN is set in your Hugging Face Space > Settings > Repository secrets
|
20 |
-
hf_token = os.environ.get("
|
21 |
if not hf_token:
|
22 |
raise ValueError("HF_TOKEN not found. Please set it in Hugging Face Space repository secrets.")
|
23 |
login(token=hf_token)
|
|
|
17 |
|
18 |
# --- Login to Hugging Face using secret ---
|
19 |
# Make sure HF_TOKEN is set in your Hugging Face Space > Settings > Repository secrets
|
20 |
+
hf_token = os.environ.get("hugface")
|
21 |
if not hf_token:
|
22 |
raise ValueError("HF_TOKEN not found. Please set it in Hugging Face Space repository secrets.")
|
23 |
login(token=hf_token)
|