John6666 commited on
Commit
e718170
·
verified ·
1 Parent(s): 2378540

Upload gradio_demo.py

Browse files
Files changed (1) hide show
  1. 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,