Spaces:
Runtime error
Runtime error
Commit
·
9d7d381
1
Parent(s):
5ceb3c0
Update app.py
Browse files
app.py
CHANGED
@@ -43,13 +43,15 @@ with demo:
|
|
43 |
""")
|
44 |
with gr.Row():
|
45 |
with gr.Column():
|
46 |
-
with gr.Row()
|
47 |
Image_input = gr.Image(type="numpy", label="Input", interactive=True)
|
48 |
Image_anchor = gr.Image(type="numpy", label="Anchor", tool="color-sketch", interactive=True, visible=False)
|
|
|
|
|
49 |
with gr.Row():
|
50 |
-
Num_anchor = gr.Number(type="int", value=8, label="
|
51 |
-
Radio_resolution = gr.Radio(type="index", choices=["Low (256x256)", "
|
52 |
-
label="
|
53 |
with gr.Row():
|
54 |
Ckeckbox_editable = gr.Checkbox(default=False, label='Show editable anchors')
|
55 |
Button_show_anchor = gr.Button(value="Predict anchors", visible=False)
|
|
|
43 |
""")
|
44 |
with gr.Row():
|
45 |
with gr.Column():
|
46 |
+
with gr.Row():
|
47 |
Image_input = gr.Image(type="numpy", label="Input", interactive=True)
|
48 |
Image_anchor = gr.Image(type="numpy", label="Anchor", tool="color-sketch", interactive=True, visible=False)
|
49 |
+
Image_input.style(width="480x", height="480px") # Изменяет размеры области ввода
|
50 |
+
Image_anchor.style(width="480px", height="480px") # Изменяет размеры области ввода
|
51 |
with gr.Row():
|
52 |
+
Num_anchor = gr.Number(type="int", value=8, label="Количество опорных точек (3~14)")
|
53 |
+
Radio_resolution = gr.Radio(type="index", choices=["Low (256x256)", "Medium (512x512)", "High (1024x1024)"], \
|
54 |
+
label="Область для раскрашивания кистью", value="Low (256x256)")
|
55 |
with gr.Row():
|
56 |
Ckeckbox_editable = gr.Checkbox(default=False, label='Show editable anchors')
|
57 |
Button_show_anchor = gr.Button(value="Predict anchors", visible=False)
|