Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -93,12 +93,14 @@ with youtube_url_tab:
|
|
93 |
with file_select_tab:
|
94 |
video_file = st.file_uploader("Upload video file", type="mp4")
|
95 |
try:
|
96 |
-
video_file = video_file.getvalue()
|
|
|
|
|
97 |
|
98 |
if video_file:
|
99 |
if st.button("Transcribe", key="vidfile"):
|
100 |
with st.spinner("Transcribing..."):
|
101 |
-
audio = audio_extraction(
|
102 |
audio = audio_processing(audio)
|
103 |
video_transcript = transcribe_video(audio)
|
104 |
st.success(f"Transcription successful")
|
|
|
93 |
with file_select_tab:
|
94 |
video_file = st.file_uploader("Upload video file", type="mp4")
|
95 |
try:
|
96 |
+
#video_file = video_file.getvalue()
|
97 |
+
with open(video_file, "wb") as f:
|
98 |
+
f.write(uploaded_file.getvalue())
|
99 |
|
100 |
if video_file:
|
101 |
if st.button("Transcribe", key="vidfile"):
|
102 |
with st.spinner("Transcribing..."):
|
103 |
+
audio = audio_extraction(video_file, "mp3")
|
104 |
audio = audio_processing(audio)
|
105 |
video_transcript = transcribe_video(audio)
|
106 |
st.success(f"Transcription successful")
|