Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,6 @@ env_password = os.environ.get('APP_PASSWORD')
|
|
8 |
|
9 |
print("env user:", env_username)
|
10 |
print("env pass:", env_password)
|
11 |
-
|
12 |
-
if not hf_token:
|
13 |
-
raise ValueError("Hugging Face token is not set in the environment variable APP_API_KEY")
|
14 |
-
if env_username:
|
15 |
-
raise ValueError("Hugging Face token is not set in the environment variable APP_USERNAME")
|
16 |
-
if not env_password:
|
17 |
-
raise ValueError("Hugging Face token is not set in the environment variable APP_PASSWORD")
|
18 |
-
|
19 |
# Print the token to confirm it's being retrieved (optional, remove in production)
|
20 |
print(f"Hugging Face token: {hf_token}")
|
21 |
|
|
|
8 |
|
9 |
print("env user:", env_username)
|
10 |
print("env pass:", env_password)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# Print the token to confirm it's being retrieved (optional, remove in production)
|
12 |
print(f"Hugging Face token: {hf_token}")
|
13 |
|