Spaces:
Runtime error
Runtime error
theFisher86
commited on
Commit
•
5461745
1
Parent(s):
1d09840
Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ def faceSwap(file1, file2):
|
|
13 |
#FaceSwap Stuff
|
14 |
url = "https://api.prodia.com/v1/faceswap"
|
15 |
payload = {
|
16 |
-
"sourceUrl": file1,
|
17 |
-
"targetUrl": file2
|
18 |
}
|
19 |
headers = {
|
20 |
"accept": "application/json",
|
|
|
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",
|