Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from evaluate import eval, install
|
3 |
from datetime import datetime
|
4 |
-
import os, shutil
|
5 |
import warnings, tempfile
|
6 |
from audio import gen_audio
|
7 |
warnings.filterwarnings("ignore")
|
@@ -44,7 +44,7 @@ jsons = {
|
|
44 |
def get_video_url(option):
|
45 |
return videos[option]
|
46 |
|
47 |
-
|
48 |
def evaluate_sign_language(user_video, standard_video_option):
|
49 |
tmp = tempfile.TemporaryDirectory()
|
50 |
tmpdir = tmp.name
|
|
|
1 |
import gradio as gr
|
2 |
from evaluate import eval, install
|
3 |
from datetime import datetime
|
4 |
+
import os, shutil, spaces
|
5 |
import warnings, tempfile
|
6 |
from audio import gen_audio
|
7 |
warnings.filterwarnings("ignore")
|
|
|
44 |
def get_video_url(option):
|
45 |
return videos[option]
|
46 |
|
47 |
+
@spaces.GPU()
|
48 |
def evaluate_sign_language(user_video, standard_video_option):
|
49 |
tmp = tempfile.TemporaryDirectory()
|
50 |
tmpdir = tmp.name
|