Spaces:
Runtime error
Runtime error
theFisher86
commited on
Commit
•
80ed77f
1
Parent(s):
ee62acc
Update app.py
Browse files
app.py
CHANGED
@@ -33,8 +33,9 @@ def faceSwap(file1, file2):
|
|
33 |
print(f"Job created with ID: {jobNumber}")
|
34 |
urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
|
35 |
headers = {"accept": "application/json", "X-Prodia-Key": api_key}
|
36 |
-
|
37 |
-
|
|
|
38 |
print(f"Status: {genStatus}")
|
39 |
result = f"https://images.prodia.xyz/{jobNumber}.png"
|
40 |
#result = "yay"
|
|
|
33 |
print(f"Job created with ID: {jobNumber}")
|
34 |
urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
|
35 |
headers = {"accept": "application/json", "X-Prodia-Key": api_key}
|
36 |
+
jobResponse = requests.get(urlBase + jobNumber, headers=headers)
|
37 |
+
print(f"Job Status Code: {jobResponse.status_code}")
|
38 |
+
genStatus = jobResponse.json()
|
39 |
print(f"Status: {genStatus}")
|
40 |
result = f"https://images.prodia.xyz/{jobNumber}.png"
|
41 |
#result = "yay"
|