Spaces:
Runtime error
Runtime error
MayankTamakuwala
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def FaceSwap(source_img, dest_img):
|
|
36 |
|
37 |
payload = {"source_img": str(src_base64), "dest_img": str(dest_base64), "source_size": src_size, "dest_size": dest_size}
|
38 |
headers = {'Content-Type': 'multipart/form-data', "Authorization": encMessage}
|
39 |
-
res = requests.post(api_url, json=payload, headers=headers
|
40 |
|
41 |
if (res.status_code >= 200 and res.status_code <= 299):
|
42 |
res = np.array(res.json())
|
|
|
36 |
|
37 |
payload = {"source_img": str(src_base64), "dest_img": str(dest_base64), "source_size": src_size, "dest_size": dest_size}
|
38 |
headers = {'Content-Type': 'multipart/form-data', "Authorization": encMessage}
|
39 |
+
res = requests.post(api_url, json=payload, headers=headers)
|
40 |
|
41 |
if (res.status_code >= 200 and res.status_code <= 299):
|
42 |
res = np.array(res.json())
|