Spaces:
Running
Running
seawolf2357
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import streamlit as st
|
2 |
-
import os
|
3 |
|
4 |
# ์ฌ์ด๋๋ฐ ํ์ดํ ์ค์
|
5 |
st.sidebar.title("ViDraft")
|
@@ -21,24 +20,13 @@ selected_sub_menu = None
|
|
21 |
selected_menu = st.sidebar.selectbox("Menu", list(menus.keys()))
|
22 |
selected_sub_menu = st.sidebar.selectbox("Sub Menu", menus[selected_menu])
|
23 |
|
24 |
-
#
|
25 |
if selected_menu == "Free Stock" and selected_sub_menu == "Template Video":
|
26 |
-
# ๋น๋์ค
|
27 |
-
|
28 |
|
29 |
-
#
|
30 |
-
|
31 |
|
32 |
-
#
|
33 |
-
|
34 |
-
|
35 |
-
# ๊ฐ ๋น๋์ค ํ์ผ์ ๋ํด ์คํธ๋ฆผ๋ฆฟ ๋น๋์ค ์์ ฏ ์์ฑ
|
36 |
-
for video_file in video_files:
|
37 |
-
# ํ์ผ์ ์ ์ฒด ๊ฒฝ๋ก ์์ฑ
|
38 |
-
video_path = os.path.join(video_directory, video_file)
|
39 |
-
|
40 |
-
# ๋น๋์ค ์ ๋ชฉ์ ์ถ๋ ฅ
|
41 |
-
st.subheader(video_file)
|
42 |
-
|
43 |
-
# ๋น๋์ค ํ์ผ์ ์คํธ๋ฆผ๋ฆฟ์ ํตํด ํ์
|
44 |
-
st.video(video_path)
|
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
# ์ฌ์ด๋๋ฐ ํ์ดํ ์ค์
|
4 |
st.sidebar.title("ViDraft")
|
|
|
20 |
selected_menu = st.sidebar.selectbox("Menu", list(menus.keys()))
|
21 |
selected_sub_menu = st.sidebar.selectbox("Sub Menu", menus[selected_menu])
|
22 |
|
23 |
+
# 'Template Video'๊ฐ ์ ํ๋์์ ๋ 'example.mp4' ๋น๋์ค๋ฅผ ํ์
|
24 |
if selected_menu == "Free Stock" and selected_sub_menu == "Template Video":
|
25 |
+
# ๋น๋์ค ํ์ผ์ ๊ฒฝ๋ก ์ค์
|
26 |
+
video_path = "example.mp4" # ์คํ์ด์ค์ ๋ฃจํธ ๋๋ ํ ๋ฆฌ์ ์์นํ ๊ฒฝ์ฐ
|
27 |
|
28 |
+
# ๋น๋์ค ์ ๋ชฉ์ ์ถ๋ ฅ
|
29 |
+
st.subheader("Example Video")
|
30 |
|
31 |
+
# ๋น๋์ค ํ์ผ์ ์คํธ๋ฆผ๋ฆฟ์ ํตํด ํ์
|
32 |
+
st.video(video_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|