seawolf2357 commited on
Commit
82676c7
β€’
1 Parent(s): 9b0811f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -6
app.py CHANGED
@@ -127,14 +127,10 @@ if selected_menu == "Image" and st.session_state['current_sub_menu'] == "Remove
127
  # iframe을 μ‚¬μš©ν•˜μ—¬ μ™ΈλΆ€ URL μž„λ² λ“œ
128
  components.iframe("https://seawolf2357-gttstest.hf.space", width=None, height=600, scrolling=True)
129
 
130
-
131
-
132
  # 'Home' νŽ˜μ΄μ§€ ν‘œμ‹œ
133
  if selected_menu == "Home":
 
134
  st.header("Welcome to ViDraft")
135
-
136
- # banner.jpg νŒŒμΌμ„ ν™”λ©΄ 상단에 ν‘œμ‹œ
137
- st.image("banner.jpg", use_column_width=True)
138
 
139
  # ν™˜μ˜ λ©”μ‹œμ§€ 및 μ„œλΉ„μŠ€ μ„€λͺ…
140
  welcome_text = """
@@ -148,9 +144,28 @@ if selected_menu == "Home":
148
  - **Scripts**: Access a wide range of scripting tools and resources to bring your stories to life.
149
 
150
  Join us to transform your creative ideas into reality with cutting-edge technology designed for creators, by creators.
151
- """
152
  st.write(welcome_text)
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
 
155
  elif selected_menu == "Free Stock":
156
  # 'Free Stock' 메뉴 선택 μ‹œ 처리 둜직
 
127
  # iframe을 μ‚¬μš©ν•˜μ—¬ μ™ΈλΆ€ URL μž„λ² λ“œ
128
  components.iframe("https://seawolf2357-gttstest.hf.space", width=None, height=600, scrolling=True)
129
 
 
 
130
  # 'Home' νŽ˜μ΄μ§€ ν‘œμ‹œ
131
  if selected_menu == "Home":
132
+ st.image("banner.jpg", use_column_width=True)
133
  st.header("Welcome to ViDraft")
 
 
 
134
 
135
  # ν™˜μ˜ λ©”μ‹œμ§€ 및 μ„œλΉ„μŠ€ μ„€λͺ…
136
  welcome_text = """
 
144
  - **Scripts**: Access a wide range of scripting tools and resources to bring your stories to life.
145
 
146
  Join us to transform your creative ideas into reality with cutting-edge technology designed for creators, by creators.
147
+ """
148
  st.write(welcome_text)
149
 
150
+ # 이미지듀을 ν•œ 쀄에 배치
151
+ cols = st.columns(4) # 4개의 μ—΄ 생성
152
+ image_files = [
153
+ "ViDraft-Video-Templet.png",
154
+ "ViDraft-Video-search.png",
155
+ "ViDraft-Image-search.png",
156
+ "ViDraft-TTS.png"
157
+ ]
158
+ image_texts = [
159
+ "Video Template",
160
+ "Video Search",
161
+ "Image Search",
162
+ "TTS (Voice)"
163
+ ]
164
+ for col, img_file, img_text in zip(cols, image_files, image_texts):
165
+ with col:
166
+ st.image(img_file, use_column_width=True)
167
+ st.caption(img_text) # 파일λͺ…을 톡해 이미지 μ•„λž˜ ν…μŠ€νŠΈ 반영
168
+
169
 
170
  elif selected_menu == "Free Stock":
171
  # 'Free Stock' 메뉴 선택 μ‹œ 처리 둜직