ishworrsubedii commited on
Commit
290dd92
1 Parent(s): 34edde6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,8 +38,8 @@ swapper = insightface.model_zoo.get_model('inswapper/inswapper_128.onnx', downlo
38
 
39
  # Fine face swapper
40
  def swap_face(img1_fn, img2_fn):
41
- fine_face_swap(img1_fn, img2_fn, app, swapper, enhance=True, enhancer='REAL-ESRGAN 2x', device="cpu")
42
-
43
 
44
  with gr.Blocks() as face_swap:
45
  with gr.Row():
 
38
 
39
  # Fine face swapper
40
  def swap_face(img1_fn, img2_fn):
41
+ out_img = fine_face_swap(img1_fn, img2_fn, app, swapper, enhance=True, enhancer='REAL-ESRGAN 2x', device="cpu")
42
+ return out_img
43
 
44
  with gr.Blocks() as face_swap:
45
  with gr.Row():