Vignesh455 commited on
Commit
859f6d1
1 Parent(s): d8c73e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ def Swap_Face(image1,image2):
9
  app = FaceAnalysis(name='buffalo_l')
10
  app.prepare(ctx_id=0, det_size=(640, 640))
11
 
12
- swapper = insightface.model_zoo.get_model(r"C:\Users\vigne\Downloads\inswapper_128.onnx", download=False,
13
  download_zip=False)
14
- face_enhancer = gfpgan.GFPGANer(model_path=r"C:\Users\vigne\Downloads\GFPGANv1.4.pth", upscale=1)
15
 
16
  # Do the swap
17
  face1 = app.get(image1)[0]
 
9
  app = FaceAnalysis(name='buffalo_l')
10
  app.prepare(ctx_id=0, det_size=(640, 640))
11
 
12
+ swapper = insightface.model_zoo.get_model("inswapper_128.onnx", download=False,
13
  download_zip=False)
14
+ face_enhancer = gfpgan.GFPGANer(model_path="GFPGANv1.4.pth", upscale=1)
15
 
16
  # Do the swap
17
  face1 = app.get(image1)[0]