theFisher86 commited on
Commit
21d0068
1 Parent(s): cdb68fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -34,8 +34,9 @@ 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
- #result = response.json().get("status")
38
- result = "yay"
 
39
  else:
40
  print(f"Couldn't create job. {response.status_code}")
41
  result = "fuck"
 
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
+ print(response.json().get("status"))
38
+ result = response.json().get("job")
39
+ #result = "yay"
40
  else:
41
  print(f"Couldn't create job. {response.status_code}")
42
  result = "fuck"