Spaces:
Runtime error
Runtime error
Fix issue with single uploaded file not being transcribed if too long
Browse files
app.py
CHANGED
|
@@ -407,7 +407,7 @@ def transcribe(microphone, audio_file, model_name):
|
|
| 407 |
if os.path.exists(audio_data):
|
| 408 |
os.remove(audio_data)
|
| 409 |
|
| 410 |
-
audio_data = new_audio_data
|
| 411 |
|
| 412 |
# Use HF API for transcription
|
| 413 |
start = time.time()
|
|
|
|
| 407 |
if os.path.exists(audio_data):
|
| 408 |
os.remove(audio_data)
|
| 409 |
|
| 410 |
+
audio_data = new_audio_data
|
| 411 |
|
| 412 |
# Use HF API for transcription
|
| 413 |
start = time.time()
|