israelweiss commited on
Commit
0e87483
1 Parent(s): 46c6241

undo breaking changes of width/height

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -108,14 +108,13 @@ with image_blocks as demo:
108
  with gr.Column():
109
  image = gr.ImageEditor(sources=["upload"], layers=False, transforms=[],
110
  brush=gr.Brush(colors=["#000000"], color_mode="fixed"),
111
- max_width=512, max_height=512
112
  )
113
  with gr.Row(elem_id="prompt-container", equal_height=True):
114
  with gr.Column(): # Wrap the button inside a Column
115
  btn = gr.Button("Erase!", elem_id="run_button")
116
 
117
  with gr.Column():
118
- image_out = gr.Image(label="Output", elem_id="output-img", max_width=512, max_height=512)
119
 
120
  # Button click will trigger the inpainting function (no prompt required)
121
  btn.click(fn=predict, inputs=[image], outputs=[image_out], api_name='run')
 
108
  with gr.Column():
109
  image = gr.ImageEditor(sources=["upload"], layers=False, transforms=[],
110
  brush=gr.Brush(colors=["#000000"], color_mode="fixed"),
 
111
  )
112
  with gr.Row(elem_id="prompt-container", equal_height=True):
113
  with gr.Column(): # Wrap the button inside a Column
114
  btn = gr.Button("Erase!", elem_id="run_button")
115
 
116
  with gr.Column():
117
+ image_out = gr.Image(label="Output", elem_id="output-img", height=400)
118
 
119
  # Button click will trigger the inpainting function (no prompt required)
120
  btn.click(fn=predict, inputs=[image], outputs=[image_out], api_name='run')