theFisher86 commited on
Commit
4a8e122
1 Parent(s): 5461745

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,15 +12,16 @@ def faceSwap(file1, file2):
12
 
13
  #FaceSwap Stuff
14
  url = "https://api.prodia.com/v1/faceswap"
 
15
  payload = {
16
  "sourceUrl": f"https://thefisher86-faceswappa.hf.space/file={file1}",
17
  "targetUrl": f"https://thefisher86-faceswappa.hf.space/file={file2}"
18
  }
19
  headers = {
20
  "accept": "application/json",
21
- "content-type": "application/json"
 
22
  }
23
- api_key=os.getenv("PRODIA_API_KEY")
24
  print(url)
25
  print(payload)
26
  print(headers)
 
12
 
13
  #FaceSwap Stuff
14
  url = "https://api.prodia.com/v1/faceswap"
15
+ api_key=os.getenv("PRODIA_API_KEY")
16
  payload = {
17
  "sourceUrl": f"https://thefisher86-faceswappa.hf.space/file={file1}",
18
  "targetUrl": f"https://thefisher86-faceswappa.hf.space/file={file2}"
19
  }
20
  headers = {
21
  "accept": "application/json",
22
+ "content-type": "application/json",
23
+ "X-Prodia-Key": api_key
24
  }
 
25
  print(url)
26
  print(payload)
27
  print(headers)