Spaces:
Running
on
Zero
Running
on
Zero
xieli
commited on
Commit
·
0b420f3
1
Parent(s):
e32c725
feat: fix
Browse files
app.py
CHANGED
|
@@ -172,7 +172,7 @@ def process_audio_with_gpu(audio_input, text_input, target_text, task_type, task
|
|
| 172 |
# GPU automatically deallocated when function exits
|
| 173 |
|
| 174 |
@spaces.GPU(duration=30)
|
| 175 |
-
def transcribe_audio(
|
| 176 |
"""Transcribe audio using Whisper ASR when prompt text is empty"""
|
| 177 |
global whisper_asr
|
| 178 |
# Only transcribe if current text is empty
|
|
|
|
| 172 |
# GPU automatically deallocated when function exits
|
| 173 |
|
| 174 |
@spaces.GPU(duration=30)
|
| 175 |
+
def transcribe_audio(audio_input, current_text):
|
| 176 |
"""Transcribe audio using Whisper ASR when prompt text is empty"""
|
| 177 |
global whisper_asr
|
| 178 |
# Only transcribe if current text is empty
|