Spaces:
Sleeping
Sleeping
Commit ·
822af44
1
Parent(s): 5e418c5
Add GPU space
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ messages in src/utils/Errors.h.
|
|
| 7 |
"""
|
| 8 |
|
| 9 |
from pyharp import *
|
|
|
|
| 10 |
|
| 11 |
from typing import Optional, Tuple
|
| 12 |
import gradio as gr
|
|
@@ -109,7 +110,7 @@ def build_labels(message: str) -> LabelList:
|
|
| 109 |
)
|
| 110 |
return labels
|
| 111 |
|
| 112 |
-
|
| 113 |
def process_fn(
|
| 114 |
input_audio_path: Optional[str],
|
| 115 |
error_family: str,
|
|
|
|
| 7 |
"""
|
| 8 |
|
| 9 |
from pyharp import *
|
| 10 |
+
import spaces
|
| 11 |
|
| 12 |
from typing import Optional, Tuple
|
| 13 |
import gradio as gr
|
|
|
|
| 110 |
)
|
| 111 |
return labels
|
| 112 |
|
| 113 |
+
@spaces.GPU
|
| 114 |
def process_fn(
|
| 115 |
input_audio_path: Optional[str],
|
| 116 |
error_family: str,
|