Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
|
| 6 |
|
| 7 |
# Get the Hugging Face token from environment variables
|
| 8 |
-
hf_token = os.getenv("
|
| 9 |
|
| 10 |
if not hf_token:
|
| 11 |
raise ValueError("Hugging Face token not found. Please set HF_TOKEN as an environment variable.")
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
# Get the Hugging Face token from environment variables
|
| 8 |
+
hf_token = os.getenv("gpt2_token")
|
| 9 |
|
| 10 |
if not hf_token:
|
| 11 |
raise ValueError("Hugging Face token not found. Please set HF_TOKEN as an environment variable.")
|