Spaces:
Runtime error
Runtime error
theFisher86
commited on
Commit
•
bf0b2b5
1
Parent(s):
c2f0708
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,11 @@ def faceSwap(file1, file2):
|
|
22 |
|
23 |
response = requests.post(url, json=payload, headers=headers)
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
|
27 |
urlBase = "https://api.prodia.com/v1/job/"
|
28 |
|
|
|
22 |
|
23 |
response = requests.post(url, json=payload, headers=headers)
|
24 |
|
25 |
+
if response.status_code == 200:
|
26 |
+
jobNumber = response.json().get("job")
|
27 |
+
print(f"Job created with ID: {jobNumber}")
|
28 |
+
else:
|
29 |
+
print(f"Couldn't create job. {response.status_code}")
|
30 |
|
31 |
urlBase = "https://api.prodia.com/v1/job/"
|
32 |
|