Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,7 @@ def get_tryon_result(model_name, garment1, garment2, seed=1234):
|
|
| 85 |
|
| 86 |
|
| 87 |
try:
|
| 88 |
-
url =
|
| 89 |
except KeyError:
|
| 90 |
print("Error: OA_IP_ADDRESS environment variable not set!")
|
| 91 |
# return a dummy image instead of crashing
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
try:
|
| 88 |
+
url = os.environ.get("OA_IP_ADDRESS") # reads your key from Hugging Face secrets
|
| 89 |
except KeyError:
|
| 90 |
print("Error: OA_IP_ADDRESS environment variable not set!")
|
| 91 |
# return a dummy image instead of crashing
|