multimodalart HF staff commited on
Commit
15404f1
1 Parent(s): 4649643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -483,10 +483,22 @@ with gr.Blocks(theme=theme, css=css) as demo:
483
  inputs=[steps],
484
  outputs=[cost_preview, cost_preview_info, payment_update, start]
485
  )
 
486
  images.clear(
487
  hide_captioning,
488
  outputs=[captioning_area, cost_preview, sample, start]
489
  )
 
 
 
 
 
 
 
 
 
 
 
490
  gr.on(
491
  triggers=[steps.change, payment_update.click],
492
  fn=update_pricing,
 
483
  inputs=[steps],
484
  outputs=[cost_preview, cost_preview_info, payment_update, start]
485
  )
486
+
487
  images.clear(
488
  hide_captioning,
489
  outputs=[captioning_area, cost_preview, sample, start]
490
  )
491
+
492
+ images.delete(
493
+ load_captioning,
494
+ inputs=[images, concept_sentence],
495
+ outputs=output_components
496
+ ).then(
497
+ update_pricing,
498
+ inputs=[steps],
499
+ outputs=[cost_preview, cost_preview_info, payment_update, start]
500
+ )
501
+
502
  gr.on(
503
  triggers=[steps.change, payment_update.click],
504
  fn=update_pricing,