fffiloni commited on
Commit
19554e3
·
verified ·
1 Parent(s): cad8227

zero gpu ready

Browse files
Files changed (1) hide show
  1. gradio_app.py +2 -0
gradio_app.py CHANGED
@@ -41,6 +41,7 @@ from dataset_process import audio
41
 
42
  from dataset_process.croper import Croper
43
 
 
44
 
45
  def parse_audio_length(audio_length, sr, fps):
46
  bit_per_frames = sr / fps
@@ -376,6 +377,7 @@ class Inferencer(object):
376
  os.remove(path)
377
  os.remove(new_audio_path)
378
 
 
379
  def gradio_infer(source_image, driven_audio):
380
 
381
  import tempfile
 
41
 
42
  from dataset_process.croper import Croper
43
 
44
+ import spaces
45
 
46
  def parse_audio_length(audio_length, sr, fps):
47
  bit_per_frames = sr / fps
 
377
  os.remove(path)
378
  os.remove(new_audio_path)
379
 
380
+ @spaces.GPU()
381
  def gradio_infer(source_image, driven_audio):
382
 
383
  import tempfile