Spaces:
Running
Running
Shah
commited on
Commit
β’
2921e2e
1
Parent(s):
e990b13
Update show/hide of sample videos
Browse files- app_utils.py +7 -2
app_utils.py
CHANGED
@@ -547,11 +547,16 @@ def set_page_info_and_sidebar_info():
|
|
547 |
# st.markdown("Upload your own images or video **OR** select from our sample library below")
|
548 |
st.markdown(
|
549 |
"<p style='font-size: 30px;'>"
|
550 |
-
"Upload your own image πΌοΈ or video ποΈ <strong>OR</strong> select from our sample
|
551 |
"</p>",
|
552 |
unsafe_allow_html=True,
|
553 |
)
|
554 |
-
video_path = display_video_library()
|
|
|
|
|
|
|
|
|
|
|
555 |
|
556 |
st.markdown("<hr id='target_element' style='border: 1px solid #6d6d6d; margin: 20px 0;'>", unsafe_allow_html=True)
|
557 |
cols = st.columns((1, 1))
|
|
|
547 |
# st.markdown("Upload your own images or video **OR** select from our sample library below")
|
548 |
st.markdown(
|
549 |
"<p style='font-size: 30px;'>"
|
550 |
+
"Upload your own image πΌοΈ or video ποΈ <strong>OR</strong> select from our sample videos π"
|
551 |
"</p>",
|
552 |
unsafe_allow_html=True,
|
553 |
)
|
554 |
+
# video_path = display_video_library()
|
555 |
+
show_demo_videos = st.sidebar.checkbox("Show Sample Videos", value=False)
|
556 |
+
if show_demo_videos:
|
557 |
+
video_path = display_video_library()
|
558 |
+
else:
|
559 |
+
video_path = None
|
560 |
|
561 |
st.markdown("<hr id='target_element' style='border: 1px solid #6d6d6d; margin: 20px 0;'>", unsafe_allow_html=True)
|
562 |
cols = st.columns((1, 1))
|