ShashwatStable commited on
Commit
6647b6a
·
verified ·
1 Parent(s): e6cc2d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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' notin lo['outputs']:
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']