xi0v Fabrice-TIERCELIN commited on
Commit
27f1ad3
·
verified ·
1 Parent(s): 88ca775

Display in *.mp4, download in *.avi (#34)

Browse files

- Display in *.mp4, download in *.avi (3a0a47d56788b96f03d276eccc559df9e017e60c)


Co-authored-by: Fabrice TIERCELIN <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ def animate(
94
 
95
  return [
96
  # Display for video
97
- gr.update(value = video_path, format = video_format if video_format != "gif" else None, visible=video_format != "gif"),
98
  # Display for gif
99
  gr.update(value = gif_path, visible = video_format == "gif"),
100
  # Download button
 
94
 
95
  return [
96
  # Display for video
97
+ gr.update(value = video_path, visible=video_format != "gif"),
98
  # Display for gif
99
  gr.update(value = gif_path, visible = video_format == "gif"),
100
  # Download button