Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def generate_and_upload(text):
|
|
33 |
|
34 |
# Authenticate with Hugging Face Hub
|
35 |
api = HfApi()
|
36 |
-
token =
|
37 |
if token is None:
|
38 |
raise ValueError("Hugging Face API token not found. Please set HUGGINGFACE_API_TOKEN environment variable.")
|
39 |
|
|
|
33 |
|
34 |
# Authenticate with Hugging Face Hub
|
35 |
api = HfApi()
|
36 |
+
token = os.environ['HUGGINGFACE_API_TOKEN']
|
37 |
if token is None:
|
38 |
raise ValueError("Hugging Face API token not found. Please set HUGGINGFACE_API_TOKEN environment variable.")
|
39 |
|