gstaff commited on
Commit
14c96e9
1 Parent(s): a750e42

Add developer notes.

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import gradio as gr
4
  from moviepy.editor import VideoFileClip
5
  import moviepy.video.io.ffmpeg_tools as ffmpeg_tools
6
 
 
7
  # TODO: Finalize result gif size with pygifscicle? https://github.com/LucaCappelletti94/pygifsicle Maybe optimize option
8
  # TODO: Extra delay frames?
9
  # git lfs track --filename file_example_MP4_480_1_5MG.mp4
@@ -50,5 +51,9 @@ with gr.Blocks() as demo:
50
  examples=[['file_example_MP4_480_1_5MG.mp4', 60]],
51
  inputs=[in_video, frame_rate], outputs=[image_out], fn=convert_mp4_to_gif, cache_examples=True)
52
 
 
 
 
 
53
  if __name__ == '__main__':
54
  demo.launch()
 
4
  from moviepy.editor import VideoFileClip
5
  import moviepy.video.io.ffmpeg_tools as ffmpeg_tools
6
 
7
+
8
  # TODO: Finalize result gif size with pygifscicle? https://github.com/LucaCappelletti94/pygifsicle Maybe optimize option
9
  # TODO: Extra delay frames?
10
  # git lfs track --filename file_example_MP4_480_1_5MG.mp4
 
51
  examples=[['file_example_MP4_480_1_5MG.mp4', 60]],
52
  inputs=[in_video, frame_rate], outputs=[image_out], fn=convert_mp4_to_gif, cache_examples=True)
53
 
54
+ with gr.Accordion('Developer Notes:', open=False):
55
+ gr.Markdown('This simple tool handles a conversion I\'ve needed from time to time.\n\n'
56
+ 'Note that like many tools working with video this has a dependency on ffmpeg.')
57
+
58
  if __name__ == '__main__':
59
  demo.launch()