BoxOfColors commited on
Commit
e792114
·
1 Parent(s): 8ddbfd1

fix: hide built-in Gradio video download button on output slots

Browse files

The Gradio gr.Video download button always points to the originally generated
file and doesn't update after regen. Replaced by the Video download link in
the waveform panel which always reflects the latest mux.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1445,7 +1445,8 @@ def _make_output_slots(tab_prefix: str) -> tuple:
1445
  slot_id = f"{tab_prefix}_{i}"
1446
  with gr.Group(visible=(i == 0)) as g:
1447
  vids.append(gr.Video(label=f"Generation {i+1} — Video",
1448
- elem_id=f"slot_vid_{slot_id}"))
 
1449
  waveforms.append(gr.HTML(
1450
  value="<p style='color:#888;font-size:12px'>Generate audio to see waveform.</p>",
1451
  elem_id=f"slot_wave_{slot_id}",
 
1445
  slot_id = f"{tab_prefix}_{i}"
1446
  with gr.Group(visible=(i == 0)) as g:
1447
  vids.append(gr.Video(label=f"Generation {i+1} — Video",
1448
+ elem_id=f"slot_vid_{slot_id}",
1449
+ show_download_button=False))
1450
  waveforms.append(gr.HTML(
1451
  value="<p style='color:#888;font-size:12px'>Generate audio to see waveform.</p>",
1452
  elem_id=f"slot_wave_{slot_id}",