Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
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, # ํด๋ฆญ๋ ์์น์ ์ธ๋ฑ์ค ๋ฐํ
|