Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ def main():
|
|
37 |
if st.sidebar.button("Swap Faces"):
|
38 |
if image_file is not None and video_file is not None:
|
39 |
# Save uploaded files
|
40 |
-
image_path =
|
41 |
-
video_path =
|
42 |
|
43 |
with open(image_path, "wb") as f:
|
44 |
f.write(image_file.read())
|
|
|
37 |
if st.sidebar.button("Swap Faces"):
|
38 |
if image_file is not None and video_file is not None:
|
39 |
# Save uploaded files
|
40 |
+
image_path = image_file
|
41 |
+
video_path = video_file
|
42 |
|
43 |
with open(image_path, "wb") as f:
|
44 |
f.write(image_file.read())
|