Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,9 @@ for menu, sub_menus in menus.items():
|
|
24 |
# ์ ํ๋ ๋ฉ๋ด์ ์๋ธ ๋ฉ๋ด์ ๋ํ ์ฒ๋ฆฌ ๋ก์ง์ ์ฌ๊ธฐ์ ์ถ๊ฐ
|
25 |
|
26 |
|
27 |
-
#
|
28 |
if selected_menu == "Free Stock" and selected_sub_menu == "Template Video":
|
29 |
st.subheader("Template Videos")
|
30 |
-
|
31 |
# ๋น๋์ค ํ์ผ๊ณผ ์ธ๋ค์ผ ์ด๋ฏธ์ง ๊ฒฝ๋ก ์ค์
|
32 |
video_files = ["ex1.mp4", "ex2.mp4", "ex3.mp4", "ex4.mp4", "ex5.mp4", "ex6.mp4"]
|
33 |
thumbnails = ["thum1.png", "thum2.png", "thum3.png", "thum4.png", "thum5.png", "thum6.png"]
|
@@ -36,9 +35,9 @@ if selected_menu == "Free Stock" and selected_sub_menu == "Template Video":
|
|
36 |
cols = st.columns(3)
|
37 |
for index, thumbnail in enumerate(thumbnails):
|
38 |
with cols[index % 3]:
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
41 |
|
42 |
-
# ์ ํ๋ ๋น๋์ค๊ฐ ์๋ค๋ฉด ํ๋จ์ ๋น๋์ค ์ฌ์
|
43 |
-
if selected_video:
|
44 |
-
st.video(selected_video)
|
|
|
24 |
# ์ ํ๋ ๋ฉ๋ด์ ์๋ธ ๋ฉ๋ด์ ๋ํ ์ฒ๋ฆฌ ๋ก์ง์ ์ฌ๊ธฐ์ ์ถ๊ฐ
|
25 |
|
26 |
|
27 |
+
# ์ ํ๋ ๋ฉ๋ด ๋ฐ ์๋ธ๋ฉ๋ด์ ๋ฐ๋ผ ๋ด์ฉ ํ์
|
28 |
if selected_menu == "Free Stock" and selected_sub_menu == "Template Video":
|
29 |
st.subheader("Template Videos")
|
|
|
30 |
# ๋น๋์ค ํ์ผ๊ณผ ์ธ๋ค์ผ ์ด๋ฏธ์ง ๊ฒฝ๋ก ์ค์
|
31 |
video_files = ["ex1.mp4", "ex2.mp4", "ex3.mp4", "ex4.mp4", "ex5.mp4", "ex6.mp4"]
|
32 |
thumbnails = ["thum1.png", "thum2.png", "thum3.png", "thum4.png", "thum5.png", "thum6.png"]
|
|
|
35 |
cols = st.columns(3)
|
36 |
for index, thumbnail in enumerate(thumbnails):
|
37 |
with cols[index % 3]:
|
38 |
+
st.image(thumbnail, width=200, caption=f"Video {index+1}")
|
39 |
+
# 'Play Video' ๋ฒํผ ์ถ๊ฐ
|
40 |
+
if st.button(f"Play Video {index+1}", key=f"play_{index}"):
|
41 |
+
# ์ ํ๋ ๋น๋์ค ์ฌ์
|
42 |
+
st.video(video_files[index])
|
43 |
|
|
|
|
|
|