Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -330,7 +330,7 @@ def inference(link, upload, _asr_model):
|
|
330 |
|
331 |
for i, chunk in enumerate(chunks):
|
332 |
chunk.export(f'output/chunk_{i}.mp3', format='mp3')
|
333 |
-
transcriptions.append(load_whisper_api('output/chunk_{i}.mp3')['text'])
|
334 |
|
335 |
results = ','.join(transcriptions)
|
336 |
|
|
|
330 |
|
331 |
for i, chunk in enumerate(chunks):
|
332 |
chunk.export(f'output/chunk_{i}.mp3', format='mp3')
|
333 |
+
transcriptions.append(load_whisper_api(f'output/chunk_{i}.mp3')['text'])
|
334 |
|
335 |
results = ','.join(transcriptions)
|
336 |
|