anurag629 commited on
Commit
0cee436
1 Parent(s): 5821330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "/content/uploaded_image.jpg"
41
- video_path = "/content/uploaded_video.mp4"
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())