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

Update app.py

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