Spaces:
Running
Running
arxivgpt kim
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ st.sidebar.title("ViDraft")
|
|
16 |
menus = {
|
17 |
"Home": [],
|
18 |
"Free Stock": ["Template Video", "Search Video", "Search Image"],
|
19 |
-
"Image": ["Remove Background", "Compositing"],
|
20 |
"Video": ["Generation", "Talking Face", "Remove Background", "Compositing"],
|
21 |
"Sound": ["TTS(Voice)", "Video SFX", "Video Music","Image SFX", "Image Music"],
|
22 |
"Scripts": []
|
@@ -135,7 +135,11 @@ if selected_menu == "Image" and st.session_state['current_sub_menu'] == "Composi
|
|
135 |
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
136 |
components.iframe("https://arxivgpt-vidistudio.hf.space", width=None, height=1800, scrolling=True)
|
137 |
|
138 |
-
|
|
|
|
|
|
|
|
|
139 |
|
140 |
# 'video' ๋ฉ๋ด์์ 'Compositing' ์ ํ ์
|
141 |
if selected_menu == "Video" and st.session_state['current_sub_menu'] == "Compositing":
|
@@ -148,6 +152,8 @@ if selected_menu == "Video" and st.session_state['current_sub_menu'] == "Remove
|
|
148 |
st.header("Remove Background")
|
149 |
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
150 |
components.iframe("https://arxivgpt-vidvback.hf.space", width=None, height=1800, scrolling=True)
|
|
|
|
|
151 |
|
152 |
# 'Home' ํ์ด์ง ํ์
|
153 |
if selected_menu == "Home":
|
@@ -203,9 +209,6 @@ if selected_menu == "Home":
|
|
203 |
col.markdown(f"<div style='text-align: center; font-weight: bold; font-size: 20px;'>{image_texts[i + idx]}</div>", unsafe_allow_html=True)
|
204 |
|
205 |
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
elif selected_menu == "Free Stock":
|
210 |
# 'Free Stock' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
211 |
if st.session_state['current_sub_menu'] == "Template Video":
|
@@ -220,6 +223,9 @@ elif selected_menu == "Free Stock":
|
|
220 |
st.video(video_file)
|
221 |
|
222 |
|
|
|
|
|
|
|
223 |
# 'Video' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
224 |
elif selected_menu == "Video":
|
225 |
if st.session_state['current_sub_menu'] == "Generation":
|
@@ -245,6 +251,7 @@ elif selected_menu == "Sound":
|
|
245 |
st.header("Image Music")
|
246 |
st.write("Associate music tracks with your images.")
|
247 |
|
|
|
248 |
# 'Scripts' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
249 |
elif selected_menu == "Scripts":
|
250 |
st.header("Scripts")
|
|
|
16 |
menus = {
|
17 |
"Home": [],
|
18 |
"Free Stock": ["Template Video", "Search Video", "Search Image"],
|
19 |
+
"Image": ["Face Swap", "Remove Background", "Compositing"],
|
20 |
"Video": ["Generation", "Talking Face", "Remove Background", "Compositing"],
|
21 |
"Sound": ["TTS(Voice)", "Video SFX", "Video Music","Image SFX", "Image Music"],
|
22 |
"Scripts": []
|
|
|
135 |
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
136 |
components.iframe("https://arxivgpt-vidistudio.hf.space", width=None, height=1800, scrolling=True)
|
137 |
|
138 |
+
# 'Image' ๋ฉ๋ด์์ 'Face Swap' ์ ํ ์
|
139 |
+
if selected_menu == "Image" and st.session_state['current_sub_menu'] == "Face Swap":
|
140 |
+
st.header("Face Swap")
|
141 |
+
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
142 |
+
components.iframe("https://arxivgpt-vidifs.hf.space", width=None, height=1800, scrolling=True)
|
143 |
|
144 |
# 'video' ๋ฉ๋ด์์ 'Compositing' ์ ํ ์
|
145 |
if selected_menu == "Video" and st.session_state['current_sub_menu'] == "Compositing":
|
|
|
152 |
st.header("Remove Background")
|
153 |
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
154 |
components.iframe("https://arxivgpt-vidvback.hf.space", width=None, height=1800, scrolling=True)
|
155 |
+
|
156 |
+
|
157 |
|
158 |
# 'Home' ํ์ด์ง ํ์
|
159 |
if selected_menu == "Home":
|
|
|
209 |
col.markdown(f"<div style='text-align: center; font-weight: bold; font-size: 20px;'>{image_texts[i + idx]}</div>", unsafe_allow_html=True)
|
210 |
|
211 |
|
|
|
|
|
|
|
212 |
elif selected_menu == "Free Stock":
|
213 |
# 'Free Stock' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
214 |
if st.session_state['current_sub_menu'] == "Template Video":
|
|
|
223 |
st.video(video_file)
|
224 |
|
225 |
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
# 'Video' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
230 |
elif selected_menu == "Video":
|
231 |
if st.session_state['current_sub_menu'] == "Generation":
|
|
|
251 |
st.header("Image Music")
|
252 |
st.write("Associate music tracks with your images.")
|
253 |
|
254 |
+
|
255 |
# 'Scripts' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
256 |
elif selected_menu == "Scripts":
|
257 |
st.header("Scripts")
|