Apex-X commited on
Commit
e61db2b
·
1 Parent(s): 11ebd13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ from PIL import Image
18
  def swap_face(source_file, target_file):
19
 
20
  source_path = "input.jpg"
21
- target_path = "target.jpg"
22
 
23
  source_image = Image.fromarray(source_file)
24
  source_image.save(source_path)
@@ -30,7 +30,7 @@ def swap_face(source_file, target_file):
30
 
31
  roop.globals.source_path = source_path
32
  roop.globals.target_path = target_path
33
- output_path = "output.jpg"
34
  roop.globals.output_path = normalize_output_path(
35
  roop.globals.source_path, roop.globals.target_path, output_path
36
  )
 
18
  def swap_face(source_file, target_file):
19
 
20
  source_path = "input.jpg"
21
+ target_path = "target.mp4"
22
 
23
  source_image = Image.fromarray(source_file)
24
  source_image.save(source_path)
 
30
 
31
  roop.globals.source_path = source_path
32
  roop.globals.target_path = target_path
33
+ output_path = "output.mp4"
34
  roop.globals.output_path = normalize_output_path(
35
  roop.globals.source_path, roop.globals.target_path, output_path
36
  )