Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,6 @@ def initialize_session_state():
|
|
94 |
st.session_state.doneYoutubeurl = ""
|
95 |
|
96 |
def sidebar():
|
97 |
-
def sidebar():
|
98 |
with st.sidebar:
|
99 |
st.markdown("Enter the YouTube Video URL below🔗\n")
|
100 |
st.session_state.youtube_url = st.text_input("YouTube Video URL:")
|
@@ -106,12 +105,13 @@ def sidebar():
|
|
106 |
|
107 |
# Embed the video
|
108 |
st.markdown(
|
109 |
-
f'<iframe
|
110 |
unsafe_allow_html=True
|
111 |
)
|
112 |
|
113 |
|
114 |
|
|
|
115 |
sidebar()
|
116 |
initialize_session_state()
|
117 |
|
|
|
94 |
st.session_state.doneYoutubeurl = ""
|
95 |
|
96 |
def sidebar():
|
|
|
97 |
with st.sidebar:
|
98 |
st.markdown("Enter the YouTube Video URL below🔗\n")
|
99 |
st.session_state.youtube_url = st.text_input("YouTube Video URL:")
|
|
|
105 |
|
106 |
# Embed the video
|
107 |
st.markdown(
|
108 |
+
f'<iframe width="300" height="200" src="{st.session_state.youtube_url.replace("watch?v=", "embed/")}" frameborder="0" allowfullscreen></iframe>',
|
109 |
unsafe_allow_html=True
|
110 |
)
|
111 |
|
112 |
|
113 |
|
114 |
+
|
115 |
sidebar()
|
116 |
initialize_session_state()
|
117 |
|