Spaces:
Runtime error
Runtime error
theFisher86
commited on
Commit
•
0f347be
1
Parent(s):
80ed77f
Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,10 @@ def faceSwap(file1, file2):
|
|
31 |
if response.status_code == 200:
|
32 |
jobNumber = response.json().get("job")
|
33 |
print(f"Job created with ID: {jobNumber}")
|
34 |
-
urlBase =
|
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}")
|
|
|
31 |
if response.status_code == 200:
|
32 |
jobNumber = response.json().get("job")
|
33 |
print(f"Job created with ID: {jobNumber}")
|
34 |
+
urlBase = "https://api.prodia.com/v1/job/"
|
35 |
+
headers = {"accept": "application/json", "content-type": "application/json", "X-Prodia-Key": api_key}
|
36 |
jobResponse = requests.get(urlBase + jobNumber, headers=headers)
|
37 |
+
print(f"JobResponse Value: {jobResponse}")
|
38 |
print(f"Job Status Code: {jobResponse.status_code}")
|
39 |
genStatus = jobResponse.json()
|
40 |
print(f"Status: {genStatus}")
|