seawolf2357 commited on
Commit
e07786f
โ€ข
1 Parent(s): 88421c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -8
app.py CHANGED
@@ -153,7 +153,7 @@ if selected_menu == "Video" and st.session_state['current_sub_menu'] == "Remove
153
  if selected_menu == "Home":
154
  st.image("banner2.jpg", use_column_width=True)
155
  st.header("Welcome to ViDraft")
156
- st.subheader("'Create Contents, ViDraft Value-UP'")
157
 
158
  # ํ™˜์˜ ๋ฉ”์‹œ์ง€ ๋ฐ ์„œ๋น„์Šค ์„ค๋ช…
159
  welcome_text = """
@@ -169,18 +169,41 @@ if selected_menu == "Home":
169
  Join us to transform your creative ideas into reality with cutting-edge technology designed for creators, by creators.
170
 
171
  -Contact: arxivgpt@gmail.com / Powered by ArXivGPT, Huggingface, Gradio, Streamlit
172
- """
173
-
174
  st.write(welcome_text)
175
 
176
  # ์ด๋ฏธ์ง€๋“ค์„ ํ•œ ์ค„์— 3์žฅ์”ฉ ๋ฐฐ์น˜
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  for i in range(0, len(image_files), 3):
178
  cols = st.columns(3)
179
- for col, img_file, img_text in zip(cols, image_files[i:i+3], image_texts[i:i+3]):
180
- with col:
181
- st.image(img_file, use_column_width=True)
182
- # Markdown์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋ฏธ์ง€ ์•„๋ž˜์— ๊ตต์€ ํ…์ŠคํŠธ ์ถ”๊ฐ€
183
- col.markdown(f"<div style='text-align: center; font-weight: bold; font-size: 20px;'>{img_text}</div>", unsafe_allow_html=True)
 
 
184
 
185
 
186
  elif selected_menu == "Free Stock":
 
153
  if selected_menu == "Home":
154
  st.image("banner2.jpg", use_column_width=True)
155
  st.header("Welcome to ViDraft")
156
+ st.header("'Create Contents, ViDraft Value-UP'")
157
 
158
  # ํ™˜์˜ ๋ฉ”์‹œ์ง€ ๋ฐ ์„œ๋น„์Šค ์„ค๋ช…
159
  welcome_text = """
 
169
  Join us to transform your creative ideas into reality with cutting-edge technology designed for creators, by creators.
170
 
171
  -Contact: arxivgpt@gmail.com / Powered by ArXivGPT, Huggingface, Gradio, Streamlit
172
+ """
 
173
  st.write(welcome_text)
174
 
175
  # ์ด๋ฏธ์ง€๋“ค์„ ํ•œ ์ค„์— 3์žฅ์”ฉ ๋ฐฐ์น˜
176
+ image_files = [
177
+ "ViDraft-Video-Templet.png",
178
+ "ViDraft-Video-search.png",
179
+ "ViDraft-Image-search.png",
180
+ "ViDraft-TTS.png",
181
+ "ViDraft-image-remove background.png",
182
+ "ViDraft-video-remove-back.png",
183
+ "ViDraft-video-comp.png",
184
+ "ViDraft-image-comp.png"
185
+ ]
186
+
187
+ image_texts = [
188
+ "Video Template(OpenAI SORA)",
189
+ "Free Stock: Video Search",
190
+ "Free Stock: Image Search",
191
+ "Multilingual Text to Speech(TTS)",
192
+ "Remove image background",
193
+ "Remove Video background",
194
+ "Video Compositing",
195
+ "Image Compositing"
196
+ ]
197
+
198
  for i in range(0, len(image_files), 3):
199
  cols = st.columns(3)
200
+ for idx, col in enumerate(cols):
201
+ if i + idx < len(image_files):
202
+ col.image(image_files[i + idx], use_column_width=True)
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":