Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def prompt(pos,hei,wid,no):
|
|
| 40 |
for i in id :
|
| 41 |
li = requests.get(f"https://www.comfydeploy.com/api/run?run_id={i}",headers=hed)
|
| 42 |
lo=li.json()
|
| 43 |
-
if 'url'
|
| 44 |
li = requests.get(f"https://www.comfydeploy.com/api/run?run_id={i}",headers=hed)
|
| 45 |
lo=li.json()
|
| 46 |
url=lo['outputs'][0]['data']['images'][0]['url']
|
|
|
|
| 40 |
for i in id :
|
| 41 |
li = requests.get(f"https://www.comfydeploy.com/api/run?run_id={i}",headers=hed)
|
| 42 |
lo=li.json()
|
| 43 |
+
if 'url' not in lo['outputs'][0]['data']:
|
| 44 |
li = requests.get(f"https://www.comfydeploy.com/api/run?run_id={i}",headers=hed)
|
| 45 |
lo=li.json()
|
| 46 |
url=lo['outputs'][0]['data']['images'][0]['url']
|