Spaces:
Sleeping
Sleeping
seawolf2357
commited on
Commit
โข
8eb8148
1
Parent(s):
7c574ed
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ st.sidebar.title("ViDraft")
|
|
16 |
menus = {
|
17 |
"Home": [],
|
18 |
"Free Stock": ["Template Video", "Search Video", "Search Image"],
|
19 |
-
"Image": ["
|
20 |
-
"Video": ["Generation", "Talking Face", "Remove Background", "
|
21 |
"Sound": ["Video SFX", "Video Music", "TTS(Voice)", "Image SFX", "Image Music"],
|
22 |
"Scripts": []
|
23 |
}
|
@@ -122,12 +122,20 @@ if selected_menu == "Free Stock" and st.session_state['current_sub_menu'] == "Se
|
|
122 |
with cols[idx % 3]:
|
123 |
st.video(video)
|
124 |
|
|
|
125 |
# 'Image' ๋ฉ๋ด์์ 'Remove Background' ์ ํ ์
|
126 |
if selected_menu == "Image" and st.session_state['current_sub_menu'] == "Remove Background":
|
127 |
st.header("Remove Background")
|
128 |
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
129 |
components.iframe("https://arxivgpt-vidnuki.hf.space", width=None, height=768, scrolling=True)
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
# 'Home' ํ์ด์ง ํ์
|
132 |
if selected_menu == "Home":
|
133 |
st.image("banner2.jpg", use_column_width=True)
|
@@ -192,22 +200,6 @@ elif selected_menu == "Free Stock":
|
|
192 |
st.video(video_file)
|
193 |
|
194 |
|
195 |
-
# 'Image' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
196 |
-
elif selected_menu == "Image":
|
197 |
-
if st.session_state['current_sub_menu'] == "Generation":
|
198 |
-
st.header("Image Generation")
|
199 |
-
st.write("Generate images using AI.")
|
200 |
-
elif st.session_state['current_sub_menu'] == "Face ID":
|
201 |
-
st.header("Face ID")
|
202 |
-
st.write("Identify and analyze faces in images.")
|
203 |
-
elif st.session_state['current_sub_menu'] == "Inpainting":
|
204 |
-
st.header("Inpainting")
|
205 |
-
st.write("Fill in missing parts of images.")
|
206 |
-
|
207 |
-
elif st.session_state['current_sub_menu'] == "Studio":
|
208 |
-
st.header("Image Studio")
|
209 |
-
st.write("Access a suite of image editing tools.")
|
210 |
-
|
211 |
# 'Video' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
212 |
elif selected_menu == "Video":
|
213 |
if st.session_state['current_sub_menu'] == "Generation":
|
@@ -219,7 +211,7 @@ elif selected_menu == "Video":
|
|
219 |
elif st.session_state['current_sub_menu'] == "Remove Background":
|
220 |
st.header("Video Background Removal")
|
221 |
st.write("Remove backgrounds from your videos effortlessly.")
|
222 |
-
elif st.session_state['current_sub_menu'] == "
|
223 |
st.header("Video Studio")
|
224 |
st.write("Explore our video editing studio for advanced editing.")
|
225 |
|
|
|
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": ["Video SFX", "Video Music", "TTS(Voice)", "Image SFX", "Image Music"],
|
22 |
"Scripts": []
|
23 |
}
|
|
|
122 |
with cols[idx % 3]:
|
123 |
st.video(video)
|
124 |
|
125 |
+
|
126 |
# 'Image' ๋ฉ๋ด์์ 'Remove Background' ์ ํ ์
|
127 |
if selected_menu == "Image" and st.session_state['current_sub_menu'] == "Remove Background":
|
128 |
st.header("Remove Background")
|
129 |
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
130 |
components.iframe("https://arxivgpt-vidnuki.hf.space", width=None, height=768, scrolling=True)
|
131 |
|
132 |
+
# 'Image' ๋ฉ๋ด์์ 'Remove Background' ์ ํ ์
|
133 |
+
if selected_menu == "Image" and st.session_state['current_sub_menu'] == "Compositing":
|
134 |
+
st.header("Compositing")
|
135 |
+
# iframe์ ์ฌ์ฉํ์ฌ ์ธ๋ถ URL ์๋ฒ ๋
|
136 |
+
components.iframe("https://arxivgpt-vidistudio.hf.space", width=None, height=768, scrolling=True)
|
137 |
+
|
138 |
+
|
139 |
# 'Home' ํ์ด์ง ํ์
|
140 |
if selected_menu == "Home":
|
141 |
st.image("banner2.jpg", use_column_width=True)
|
|
|
200 |
st.video(video_file)
|
201 |
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
# 'Video' ๋ฉ๋ด ์ ํ ์ ์ฒ๋ฆฌ ๋ก์ง
|
204 |
elif selected_menu == "Video":
|
205 |
if st.session_state['current_sub_menu'] == "Generation":
|
|
|
211 |
elif st.session_state['current_sub_menu'] == "Remove Background":
|
212 |
st.header("Video Background Removal")
|
213 |
st.write("Remove backgrounds from your videos effortlessly.")
|
214 |
+
elif st.session_state['current_sub_menu'] == "Compositing":
|
215 |
st.header("Video Studio")
|
216 |
st.write("Explore our video editing studio for advanced editing.")
|
217 |
|