Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import torch
|
|
| 9 |
|
| 10 |
model_repo_id = "Qwen/Qwen-Image"
|
| 11 |
hf_token = os.getenv("HF_TOKEN_SPACES")
|
| 12 |
-
if
|
| 13 |
raise RuntimeError(
|
| 14 |
"HF_TOKEN_SPACES is not set in the environment. "
|
| 15 |
"Add it in the Space settings (Variables & secrets)."
|
|
|
|
| 9 |
|
| 10 |
model_repo_id = "Qwen/Qwen-Image"
|
| 11 |
hf_token = os.getenv("HF_TOKEN_SPACES")
|
| 12 |
+
if hf_token is None:
|
| 13 |
raise RuntimeError(
|
| 14 |
"HF_TOKEN_SPACES is not set in the environment. "
|
| 15 |
"Add it in the Space settings (Variables & secrets)."
|