zenafey commited on
Commit
f516724
1 Parent(s): 67239ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -70,7 +70,9 @@ def infer(source, target):
70
  "targetUrl": target_url
71
  })
72
  res = client.wait(job)
73
- print(res)
 
 
74
 
75
  return res['imageUrl']
76
 
 
70
  "targetUrl": target_url
71
  })
72
  res = client.wait(job)
73
+
74
+ if res['status'] == "failed":
75
+ return
76
 
77
  return res['imageUrl']
78