Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def authenticate_client():
|
|
| 22 |
Retrieves the 'TextToImage' token (stored as HF_TOKEN secret)
|
| 23 |
from the Space environment.
|
| 24 |
"""
|
| 25 |
-
hf_token = os.getenv("
|
| 26 |
if not hf_token:
|
| 27 |
raise ValueError("HF_TOKEN secret not found. Please add your 'TextToImage' token to Space Secrets.")
|
| 28 |
return InferenceClient(token=hf_token)
|
|
|
|
| 22 |
Retrieves the 'TextToImage' token (stored as HF_TOKEN secret)
|
| 23 |
from the Space environment.
|
| 24 |
"""
|
| 25 |
+
hf_token = os.getenv("TextToImage")
|
| 26 |
if not hf_token:
|
| 27 |
raise ValueError("HF_TOKEN secret not found. Please add your 'TextToImage' token to Space Secrets.")
|
| 28 |
return InferenceClient(token=hf_token)
|