arxivgpt kim commited on
Commit
3b980bb
โ€ข
1 Parent(s): e07786f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
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")