BenkHel commited on
Commit
2accaf6
·
verified ·
1 Parent(s): 34b1be7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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",