Spaces:
Running
on
Zero
Running
on
Zero
add ZeroGPU usage
Browse files
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)
|