DmitrMakeev commited on
Commit
9d7d381
·
1 Parent(s): 5ceb3c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -43,13 +43,15 @@ with demo:
43
  """)
44
  with gr.Row():
45
  with gr.Column():
46
- with gr.Row().style(height=480):
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="Num. of anchors (3~14)")
51
- Radio_resolution = gr.Radio(type="index", choices=["Low (256x256)", "High (512x512)"], \
52
- label="Colorization resolution (Low is more stable)", value="Low (256x256)")
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)