Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,9 +36,7 @@ def youtube_video_downloader(url):
|
|
| 36 |
|
| 37 |
|
| 38 |
def audio_extraction(video_file, output_format):
|
| 39 |
-
audio = extract_audio(
|
| 40 |
-
input_path=video_file, output_path=f"{video_file}.mp3", output_format=output_format
|
| 41 |
-
)
|
| 42 |
return audio
|
| 43 |
|
| 44 |
|
|
@@ -102,7 +100,7 @@ with file_select_tab:
|
|
| 102 |
|
| 103 |
if st.button("Transcribe", key="vidfile"):
|
| 104 |
with st.spinner("Transcribing..."):
|
| 105 |
-
audio = audio_extraction(video_file
|
| 106 |
audio = audio_processing(audio)
|
| 107 |
video_transcript = transcriber_pass(audio)
|
| 108 |
st.success(f"Transcription successful")
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
def audio_extraction(video_file, output_format):
|
| 39 |
+
audio = extract_audio(input_path=os.fspath(video_file), output_path=f"{video_file}.mp3")
|
|
|
|
|
|
|
| 40 |
return audio
|
| 41 |
|
| 42 |
|
|
|
|
| 100 |
|
| 101 |
if st.button("Transcribe", key="vidfile"):
|
| 102 |
with st.spinner("Transcribing..."):
|
| 103 |
+
audio = audio_extraction(video_file)
|
| 104 |
audio = audio_processing(audio)
|
| 105 |
video_transcript = transcriber_pass(audio)
|
| 106 |
st.success(f"Transcription successful")
|