Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -204,6 +204,12 @@ with gr.Blocks(title="CuMo", theme=gr.themes.Default(), css=block_css) as demo:
|
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=3):
|
206 |
imagebox = gr.Image(label="Input Image", type="filepath")
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
image_process_mode = gr.Radio(
|
208 |
["Crop", "Resize", "Pad", "Default"],
|
209 |
value="Default",
|
|
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=3):
|
206 |
imagebox = gr.Image(label="Input Image", type="filepath")
|
207 |
+
imagebox.change(
|
208 |
+
fn=clear_history,
|
209 |
+
inputs=None,
|
210 |
+
outputs=[state, chatbot, textbox, imagebox, regenerate_btn, clear_btn],
|
211 |
+
queue=False
|
212 |
+
)
|
213 |
image_process_mode = gr.Radio(
|
214 |
["Crop", "Resize", "Pad", "Default"],
|
215 |
value="Default",
|