Update app.py
Browse files
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
|
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,
|