Jeffgold commited on
Commit
b46d304
·
verified ·
1 Parent(s): 6f9d7f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -123,10 +123,11 @@ with gr.Blocks() as iface:
123
  brush=gr.Brush(colors=["#ff0000", "#00ff00", "#0000ff"]),
124
  eraser=gr.Eraser(default_size=10),
125
  height=400,
126
- width="100%",
127
  crop_size="1:1",
128
  layers=True,
129
- type="pil"
 
130
  )
131
  with gr.Column(scale=2):
132
  image_editor2 = gr.ImageEditor(
@@ -134,10 +135,11 @@ with gr.Blocks() as iface:
134
  brush=gr.Brush(colors=["#ff0000", "#00ff00", "#0000ff"]),
135
  eraser=gr.Eraser(default_size=10),
136
  height=400,
137
- width="100%",
138
  crop_size="1:1",
139
  layers=True,
140
- type="pil"
 
141
  )
142
 
143
  with gr.Row():
 
123
  brush=gr.Brush(colors=["#ff0000", "#00ff00", "#0000ff"]),
124
  eraser=gr.Eraser(default_size=10),
125
  height=400,
126
+ width=400,
127
  crop_size="1:1",
128
  layers=True,
129
+ type="pil",
130
+ show_crop_controls=True
131
  )
132
  with gr.Column(scale=2):
133
  image_editor2 = gr.ImageEditor(
 
135
  brush=gr.Brush(colors=["#ff0000", "#00ff00", "#0000ff"]),
136
  eraser=gr.Eraser(default_size=10),
137
  height=400,
138
+ width=400,
139
  crop_size="1:1",
140
  layers=True,
141
+ type="pil",
142
+ show_crop_controls=True
143
  )
144
 
145
  with gr.Row():