Spaces:
Runtime error
Runtime error
Commit
·
667efb8
1
Parent(s):
9060d5c
update
Browse files
app.py
CHANGED
|
@@ -124,6 +124,7 @@ def postprocess(speech, top_db=60, hop_length=220, win_length=440):
|
|
| 124 |
def change_instruction(mode_checkbox_group):
|
| 125 |
return instruct_dict[mode_checkbox_group]
|
| 126 |
|
|
|
|
| 127 |
def prompt_wav_recognition(prompt_wav):
|
| 128 |
res = get_asr().generate(input=prompt_wav,
|
| 129 |
language="auto", # "zn", "en", "yue", "ja", "ko", "nospeech"
|
|
|
|
| 124 |
def change_instruction(mode_checkbox_group):
|
| 125 |
return instruct_dict[mode_checkbox_group]
|
| 126 |
|
| 127 |
+
@spaces.GPU
|
| 128 |
def prompt_wav_recognition(prompt_wav):
|
| 129 |
res = get_asr().generate(input=prompt_wav,
|
| 130 |
language="auto", # "zn", "en", "yue", "ja", "ko", "nospeech"
|