Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from wenet.cli.model import load_model
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
-
import spaces
|
6 |
|
7 |
REPO_ID = "Revai/reverb-asr"
|
8 |
files = ['reverb_asr_v1.jit.zip', 'tk.units.txt']
|
@@ -17,7 +17,7 @@ def process_cat_embs(style):
|
|
17 |
return cat_embs
|
18 |
|
19 |
|
20 |
-
|
21 |
def transcribe_audio(audio, style=0):
|
22 |
if not audio:
|
23 |
return "Input Error! Please enter one audio!"
|
|
|
2 |
import torch
|
3 |
from wenet.cli.model import load_model
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
+
#import spaces
|
6 |
|
7 |
REPO_ID = "Revai/reverb-asr"
|
8 |
files = ['reverb_asr_v1.jit.zip', 'tk.units.txt']
|
|
|
17 |
return cat_embs
|
18 |
|
19 |
|
20 |
+
#@spaces.GPU
|
21 |
def transcribe_audio(audio, style=0):
|
22 |
if not audio:
|
23 |
return "Input Error! Please enter one audio!"
|