aiqtech commited on
Commit
ab95920
·
verified ·
1 Parent(s): 7bec25c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -278,7 +278,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
278
  lines=3
279
  )
280
 
281
- # Examples 갤러리를 text_prompt 아래로 이동
 
 
 
282
  if example_images:
283
  with gr.Row():
284
  gallery = gr.Gallery(
@@ -286,8 +289,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
286
  label="Example Images",
287
  show_label=True,
288
  elem_id="gallery",
289
- columns=3,
290
- rows=2,
291
  height=200,
292
  allow_preview=True
293
  )
@@ -345,8 +348,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
345
 
346
  generate_image_btn = gr.Button("Generate Image")
347
 
348
- image_prompt = gr.Image(label="Image Prompt", image_mode="RGBA", type="pil", height=300)
349
-
350
  with gr.Accordion("3D Generation Settings", open=False):
351
  ss_guidance_strength = gr.Slider(0.0, 10.0, label="Structure Guidance Strength", value=7.5, step=0.1)
352
  ss_sampling_steps = gr.Slider(1, 50, label="Structure Sampling Steps", value=12, step=1)
 
278
  lines=3
279
  )
280
 
281
+ # 이미지 프롬프트를 갤러리 전에 정의
282
+ image_prompt = gr.Image(label="Image Prompt", image_mode="RGBA", type="pil", height=300)
283
+
284
+ # Examples 갤러리를 image_prompt 아래로 이동
285
  if example_images:
286
  with gr.Row():
287
  gallery = gr.Gallery(
 
289
  label="Example Images",
290
  show_label=True,
291
  elem_id="gallery",
292
+ columns=8,
293
+ rows=3,
294
  height=200,
295
  allow_preview=True
296
  )
 
348
 
349
  generate_image_btn = gr.Button("Generate Image")
350
 
 
 
351
  with gr.Accordion("3D Generation Settings", open=False):
352
  ss_guidance_strength = gr.Slider(0.0, 10.0, label="Structure Guidance Strength", value=7.5, step=0.1)
353
  ss_sampling_steps = gr.Slider(1, 50, label="Structure Sampling Steps", value=12, step=1)