Spaces:
Runtime error
Runtime error
theFisher86
commited on
Commit
•
fb2b03d
1
Parent(s):
111e0cd
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,8 @@ def faceSwap(file1, file2):
|
|
34 |
urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
|
35 |
headers = {"accept": "application/json", "X-Prodia-Key": api_key}
|
36 |
response = requests.get(urlBase + jobNumber, headers=headers)
|
37 |
-
|
|
|
38 |
result = f"https://images.prodia.xyz/{jobNumber}.png"
|
39 |
#result = "yay"
|
40 |
else:
|
|
|
34 |
urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
|
35 |
headers = {"accept": "application/json", "X-Prodia-Key": api_key}
|
36 |
response = requests.get(urlBase + jobNumber, headers=headers)
|
37 |
+
genStatus = response.json().get("status")
|
38 |
+
print(f"Status: {genStatus}")
|
39 |
result = f"https://images.prodia.xyz/{jobNumber}.png"
|
40 |
#result = "yay"
|
41 |
else:
|