Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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"
|