Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ if submit_button:
|
|
84 |
yt_obj = YouTube(video_url)
|
85 |
# display video thumbnail
|
86 |
with col1:
|
87 |
-
thumbnail_placeholder.image(yt_obj.thumbnail_url, caption="Video Thumbnail"
|
88 |
# get transcription
|
89 |
get_yt_trans(yt_obj)
|
90 |
st.sidebar.subheader("Transcription:")
|
@@ -114,7 +114,7 @@ Question: {question}'''
|
|
114 |
if video_query_button:
|
115 |
# display video thumbnail
|
116 |
with col1:
|
117 |
-
thumbnail_placeholder.image(yt_obj.thumbnail_url, caption="Video Thumbnail"
|
118 |
|
119 |
if st.session_state.chain is None:
|
120 |
st.error("Please transcribe a video first by submitting a URL.")
|
|
|
84 |
yt_obj = YouTube(video_url)
|
85 |
# display video thumbnail
|
86 |
with col1:
|
87 |
+
thumbnail_placeholder.image(yt_obj.thumbnail_url, caption="Video Thumbnail")
|
88 |
# get transcription
|
89 |
get_yt_trans(yt_obj)
|
90 |
st.sidebar.subheader("Transcription:")
|
|
|
114 |
if video_query_button:
|
115 |
# display video thumbnail
|
116 |
with col1:
|
117 |
+
thumbnail_placeholder.image(yt_obj.thumbnail_url, caption="Video Thumbnail")
|
118 |
|
119 |
if st.session_state.chain is None:
|
120 |
st.error("Please transcribe a video first by submitting a URL.")
|