stzhao commited on
Commit
095edc3
·
verified ·
1 Parent(s): f25d2fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -198,7 +198,7 @@ with gr.Blocks() as demo:
198
 
199
  # Update the label of enhanced_caption_box based on checkbox state
200
  def update_caption_label(enable_enhancer):
201
- return gr.Textbox.update(label="Enhanced Caption" if enable_enhancer else "Final Caption")
202
 
203
  enable_enhancer.change(
204
  fn=update_caption_label,
 
198
 
199
  # Update the label of enhanced_caption_box based on checkbox state
200
  def update_caption_label(enable_enhancer):
201
+ return gr.Textbox(label="Enhanced Caption" if enable_enhancer else "Final Caption")
202
 
203
  enable_enhancer.change(
204
  fn=update_caption_label,