Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,9 @@ def infer(source, target):
|
|
70 |
"targetUrl": target_url
|
71 |
})
|
72 |
res = client.wait(job)
|
73 |
-
|
|
|
|
|
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 |
|