Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,9 @@ def audio_processing(mp3_audio):
|
|
47 |
|
48 |
|
49 |
@st.cache_resource
|
50 |
-
def transcribe_video(
|
51 |
transcriber_model = pipeline(task="automatic-speech-recognition", model="openai/whisper-large-v3")
|
52 |
-
text_extract = transcriber_model(
|
53 |
return text_extract['text']
|
54 |
|
55 |
def generate_ai_summary(transcript):
|
@@ -77,6 +77,7 @@ with youtube_url_tab:
|
|
77 |
|
78 |
|
79 |
# Video file transcription
|
|
|
80 |
with file_select_tab:
|
81 |
video_file = st.file_uploader("Upload video file", type="mp4")
|
82 |
|
|
|
47 |
|
48 |
|
49 |
@st.cache_resource
|
50 |
+
def transcribe_video(_processed_audio):
|
51 |
transcriber_model = pipeline(task="automatic-speech-recognition", model="openai/whisper-large-v3")
|
52 |
+
text_extract = transcriber_model(_processed_audio)
|
53 |
return text_extract['text']
|
54 |
|
55 |
def generate_ai_summary(transcript):
|
|
|
77 |
|
78 |
|
79 |
# Video file transcription
|
80 |
+
|
81 |
with file_select_tab:
|
82 |
video_file = st.file_uploader("Upload video file", type="mp4")
|
83 |
|