Spaces:
Sleeping
Sleeping
Upload gradio_demo.py
Browse files- src/gradio_demo.py +2 -0
src/gradio_demo.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import torch, uuid
|
2 |
import os, sys, shutil
|
3 |
from src.utils.preprocess import CropAndExtract
|
@@ -33,6 +34,7 @@ class SadTalker():
|
|
33 |
self.config_path = config_path
|
34 |
|
35 |
|
|
|
36 |
def test(self, source_image, driven_audio, preprocess='crop',
|
37 |
still_mode=False, use_enhancer=False, batch_size=1, size=256,
|
38 |
pose_style = 0, exp_scale=1.0,
|
|
|
1 |
+
import spaces
|
2 |
import torch, uuid
|
3 |
import os, sys, shutil
|
4 |
from src.utils.preprocess import CropAndExtract
|
|
|
34 |
self.config_path = config_path
|
35 |
|
36 |
|
37 |
+
@spaces.GPU()
|
38 |
def test(self, source_image, driven_audio, preprocess='crop',
|
39 |
still_mode=False, use_enhancer=False, batch_size=1, size=256,
|
40 |
pose_style = 0, exp_scale=1.0,
|