ginipick commited on
Commit
228ea98
ยท
verified ยท
1 Parent(s): 5312f7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -467,17 +467,16 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
467
  scale=1
468
  )
469
 
 
470
  with gr.Row(visible=False) as object_controls:
471
  with gr.Column(scale=1):
472
- position_grid = gr.HTML(create_position_grid())
473
- # Radio ๋ฒ„ํŠผ์œผ๋กœ ๋ณ€๊ฒฝ
474
  position = gr.Radio(
475
  choices=["top-left", "top-center", "top-right",
476
  "middle-left", "middle-center", "middle-right",
477
  "bottom-left", "bottom-center", "bottom-right"],
478
  value="bottom-center",
479
- label="Position",
480
- visible=False # UI์—์„œ๋Š” ์ˆจ๊น€
481
  )
482
  with gr.Column(scale=1):
483
  scale_slider = gr.Slider(
@@ -487,6 +486,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
487
  step=5,
488
  label="Object Size (%)"
489
  )
 
 
490
  # ์œ„์น˜ ์„ ํƒ ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ
491
  position_grid.click(
492
  fn=lambda evt: evt.index, # ํด๋ฆญ๋œ ์œ„์น˜์˜ ์ธ๋ฑ์Šค ๋ฐ˜ํ™˜
 
467
  scale=1
468
  )
469
 
470
+
471
  with gr.Row(visible=False) as object_controls:
472
  with gr.Column(scale=1):
 
 
473
  position = gr.Radio(
474
  choices=["top-left", "top-center", "top-right",
475
  "middle-left", "middle-center", "middle-right",
476
  "bottom-left", "bottom-center", "bottom-right"],
477
  value="bottom-center",
478
+ label="Object Position",
479
+ interactive=True
480
  )
481
  with gr.Column(scale=1):
482
  scale_slider = gr.Slider(
 
486
  step=5,
487
  label="Object Size (%)"
488
  )
489
+
490
+
491
  # ์œ„์น˜ ์„ ํƒ ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ
492
  position_grid.click(
493
  fn=lambda evt: evt.index, # ํด๋ฆญ๋œ ์œ„์น˜์˜ ์ธ๋ฑ์Šค ๋ฐ˜ํ™˜