Update functions.py
Browse files- functions.py +2 -2
functions.py
CHANGED
|
@@ -225,7 +225,7 @@ def transcribe_yt_video(link, py_tube=True):
|
|
| 225 |
st.info("`Transcribing YT audio...`")
|
| 226 |
|
| 227 |
#Use whisper API
|
| 228 |
-
results = load_whisper_api(st.session_state['audio'])
|
| 229 |
|
| 230 |
else:
|
| 231 |
|
|
@@ -244,7 +244,7 @@ def transcribe_yt_video(link, py_tube=True):
|
|
| 244 |
|
| 245 |
for i, chunk in enumerate(chunks):
|
| 246 |
chunk.export(f'output/chunk_{i}_{video_id}.mp3', format='mp3')
|
| 247 |
-
transcriptions.append(load_whisper_api(f'output/chunk_{i}_{video_id}.mp3')
|
| 248 |
|
| 249 |
results = ','.join(transcriptions)
|
| 250 |
|
|
|
|
| 225 |
st.info("`Transcribing YT audio...`")
|
| 226 |
|
| 227 |
#Use whisper API
|
| 228 |
+
results = load_whisper_api(st.session_state['audio'])
|
| 229 |
|
| 230 |
else:
|
| 231 |
|
|
|
|
| 244 |
|
| 245 |
for i, chunk in enumerate(chunks):
|
| 246 |
chunk.export(f'output/chunk_{i}_{video_id}.mp3', format='mp3')
|
| 247 |
+
transcriptions.append(load_whisper_api(f'output/chunk_{i}_{video_id}.mp3'))
|
| 248 |
|
| 249 |
results = ','.join(transcriptions)
|
| 250 |
|