Spaces:
Running
on
Zero
Running
on
Zero
xieli
commited on
Commit
·
f90ac73
1
Parent(s):
781d823
feat: add annatation
Browse files
app.py
CHANGED
|
@@ -439,6 +439,7 @@ class EditxTab:
|
|
| 439 |
value = None if len(choices) == 0 else choices[0]
|
| 440 |
return gr.Dropdown(label="Sub-task", choices=choices, value=value)
|
| 441 |
|
|
|
|
| 442 |
def transcribe_audio(self, audio_input, current_text):
|
| 443 |
"""Transcribe audio using Whisper ASR when prompt text is empty"""
|
| 444 |
global whisper_asr
|
|
|
|
| 439 |
value = None if len(choices) == 0 else choices[0]
|
| 440 |
return gr.Dropdown(label="Sub-task", choices=choices, value=value)
|
| 441 |
|
| 442 |
+
@spaces.GPU(duration=get_gpu_duration)
|
| 443 |
def transcribe_audio(self, audio_input, current_text):
|
| 444 |
"""Transcribe audio using Whisper ASR when prompt text is empty"""
|
| 445 |
global whisper_asr
|