theFisher86 commited on
Commit
36d894e
1 Parent(s): 3008218

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -25,10 +25,9 @@ def faceSwap(file1, file2):
25
  if response.status_code == 200:
26
  jobNumber = response.json().get("job")
27
  print(f"Job created with ID: {jobNumber}")
28
-
29
- response = requests.get(urlBase + jobNumber, headers=headers)
30
  urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
31
- headers = {"accept": "application/json", "X-Prodia-Key": "e59a5ade-5945-4229-945c-55c9c332469c"}
 
32
  result = print(response)
33
  else:
34
  print(f"Couldn't create job. {response.status_code}")
 
25
  if response.status_code == 200:
26
  jobNumber = response.json().get("job")
27
  print(f"Job created with ID: {jobNumber}")
 
 
28
  urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
29
+ headers = {"accept": "application/json", "X-Prodia-Key": api_key=os.getenv("PRODIA_API_KEY")}
30
+ response = requests.get(urlBase + jobNumber, headers=headers)
31
  result = print(response)
32
  else:
33
  print(f"Couldn't create job. {response.status_code}")