tuan2308 commited on
Commit
860023c
1 Parent(s): 1f6a041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,8 +13,9 @@ from roop.processors.frame.core import get_frame_processors_modules
13
  from roop.utilities import normalize_output_path
14
  import os
15
  from PIL import Image
 
16
 
17
-
18
  def swap_face(source_file, target_file,doFaceEnhancer):
19
 
20
  source_path = "input.jpg"
 
13
  from roop.utilities import normalize_output_path
14
  import os
15
  from PIL import Image
16
+ import spaces
17
 
18
+ @spaces.GPU(duration=120)
19
  def swap_face(source_file, target_file,doFaceEnhancer):
20
 
21
  source_path = "input.jpg"