sky24h commited on
Commit
7c351bb
·
verified ·
1 Parent(s): ae65382

add ZeroGPU usage

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
  import glob
 
3
  from natsort import natsorted
4
  import gradio as gr
5
 
@@ -8,7 +9,7 @@ from attributtes_utils import input_pose, input_emotion, input_blink
8
 
9
  model = init_model()
10
 
11
-
12
  def process(input_vid, audio_path, pose_select, emotion_select, blink_select):
13
  pose = input_pose(pose_select)
14
  emotion = input_emotion(emotion_select)
 
1
  import os
2
  import glob
3
+ +import spaces
4
  from natsort import natsorted
5
  import gradio as gr
6
 
 
9
 
10
  model = init_model()
11
 
12
+ @spaces.GPU
13
  def process(input_vid, audio_path, pose_select, emotion_select, blink_select):
14
  pose = input_pose(pose_select)
15
  emotion = input_emotion(emotion_select)