Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from huggingface_hub import login
|
|
7 |
import os
|
8 |
|
9 |
# Retrieve the token from an environment variable
|
10 |
-
access_token = os.getenv('
|
11 |
|
12 |
if access_token is None:
|
13 |
raise ValueError("Token is not set in the environment variable.")
|
|
|
7 |
import os
|
8 |
|
9 |
# Retrieve the token from an environment variable
|
10 |
+
access_token = os.getenv('HF_TOKEN') # Replace with the correct variable name
|
11 |
|
12 |
if access_token is None:
|
13 |
raise ValueError("Token is not set in the environment variable.")
|