Spaces:
Running
Running
Commit
·
a549877
1
Parent(s):
a50a535
Update app.py
Browse files
app.py
CHANGED
@@ -204,14 +204,14 @@ with image_blocks as demo:
|
|
204 |
with gr.Column():
|
205 |
image = gr.Image(source='upload', elem_id="image_upload",tool='sketch', type=f'{image_type}', label="Upload").style(mobile_collapse=False)
|
206 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
207 |
-
btn_in = gr.Button("Erase").style(
|
208 |
margin=True,
|
209 |
rounded=(True, True, True, True),
|
210 |
full_width=True,
|
211 |
)
|
212 |
with gr.Row():
|
213 |
with gr.Column():
|
214 |
-
image_out = gr.Image(label="Output", elem_id="image_output", visible=True)
|
215 |
btn_in.click(fn=predict, inputs=[image], outputs=[image_out])
|
216 |
|
217 |
image_blocks.launch()
|
|
|
204 |
with gr.Column():
|
205 |
image = gr.Image(source='upload', elem_id="image_upload",tool='sketch', type=f'{image_type}', label="Upload").style(mobile_collapse=False)
|
206 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
207 |
+
btn_in = gr.Button("Erase(↓)").style(
|
208 |
margin=True,
|
209 |
rounded=(True, True, True, True),
|
210 |
full_width=True,
|
211 |
)
|
212 |
with gr.Row():
|
213 |
with gr.Column():
|
214 |
+
image_out = gr.Image(label="Output", elem_id="image_output", visible=True).style(width=640)
|
215 |
btn_in.click(fn=predict, inputs=[image], outputs=[image_out])
|
216 |
|
217 |
image_blocks.launch()
|