Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
import os
|
4 |
|
5 |
# Retrieve the Hugging Face token from environment variables
|
6 |
-
|
7 |
if not HF_TOKEN:
|
8 |
raise ValueError("Please set your Hugging Face API token as HF_API_TOKEN in the Secrets settings.")
|
9 |
|
|
|
3 |
import os
|
4 |
|
5 |
# Retrieve the Hugging Face token from environment variables
|
6 |
+
HF_TOKEN = os.getenv("HUGGINGFACE_TOKEN")
|
7 |
if not HF_TOKEN:
|
8 |
raise ValueError("Please set your Hugging Face API token as HF_API_TOKEN in the Secrets settings.")
|
9 |
|