Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def swap_face(source_file, target_file,doFaceEnhancer):
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
  )
@@ -67,6 +67,6 @@ def swap_face(source_file, target_file,doFaceEnhancer):
67
 
68
 
69
  app = gr.Interface(
70
- fn=swap_face, inputs=[gr.Image(), gr.Image(),gr.Checkbox(label="face_enhancer?", info="do face enhancer?")], outputs="image"
71
  )
72
  app.launch()
 
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
  )
 
67
 
68
 
69
  app = gr.Interface(
70
+ fn=swap_face, inputs=[gr.Video(), gr.Video,gr.Checkbox(label="face_enhancer?", info="do face enhancer?")], outputs="image"
71
  )
72
  app.launch()