tensorkelechi commited on
Commit
435db78
·
verified ·
1 Parent(s): 9e71294

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -80,7 +80,8 @@ with youtube_url_tab:
80
 
81
  yt_video, title = youtube_video_downloader(url)
82
  if url:
83
- if st.button("Transcribe", key="yturl"):
 
84
  with st.spinner("Transcribing..."):
85
  with st.spinner('Extracting audio...'):
86
  audio = audio_extraction(yt_video)
@@ -104,8 +105,6 @@ with file_select_tab:
104
 
105
  try:
106
  if uploaded_video_file:
107
- video_file = uploaded_video_file
108
-
109
  if st.button("Transcribe", key="vidfile"):
110
  with st.spinner("Transcribing..."):
111
  with st.spinner('Extracting audio...'):
@@ -113,8 +112,7 @@ with file_select_tab:
113
 
114
  video_transcript = transcriber_pass(audio)
115
  st.success(f"Transcription successful")
116
- st.write
117
- (video_transcript)
118
 
119
  if st.button("Generate Summary", key="ti2"):
120
  summary = generate_ai_summary(video_transcript)
 
80
 
81
  yt_video, title = youtube_video_downloader(url)
82
  if url:
83
+ if st.button("Transcribe", key
84
+ ="yturl"):
85
  with st.spinner("Transcribing..."):
86
  with st.spinner('Extracting audio...'):
87
  audio = audio_extraction(yt_video)
 
105
 
106
  try:
107
  if uploaded_video_file:
 
 
108
  if st.button("Transcribe", key="vidfile"):
109
  with st.spinner("Transcribing..."):
110
  with st.spinner('Extracting audio...'):
 
112
 
113
  video_transcript = transcriber_pass(audio)
114
  st.success(f"Transcription successful")
115
+ st.write(video_transcript)
 
116
 
117
  if st.button("Generate Summary", key="ti2"):
118
  summary = generate_ai_summary(video_transcript)