ysharma HF Staff commited on
Commit
637d2df
·
1 Parent(s): 927d212
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -203,7 +203,7 @@ def gen_moviepy_gif(in_video, start_seconds, end_seconds, vid_speed, vid_list):
203
  return vid_list, "concat.mp4" #"slomo.mp4", "timelapse.mp4", #"gifimage.gif", "gifimage.mp4" #im, gif_img, gif_vid, vid_cap, #"gifimage.mp4"
204
 
205
 
206
- sample_video = ["./bolt100.mp4"] #[['./ShiaLaBeouf.mp4']]
207
  sample_vid = gr.Video(label='Video file') #for displaying the example
208
  examples = gr.components.Dataset(components=[sample_vid], samples=[sample_video], type='values')
209
 
@@ -211,13 +211,13 @@ examples = gr.components.Dataset(components=[sample_vid], samples=[sample_video]
211
  demo = gr.Blocks()
212
 
213
  with demo:
214
- gr.Markdown("""# **Watch a part of your video in SloMo or in Timelapse!** """)
215
  gr.Markdown("""
216
  ### **This is still work under progres......** Editing your video using ASR pipeline..
217
 
218
  A Space by [Yuvraj Sharma](https://huggingface.co/ysharma).
219
 
220
- **Motivation and background:** In this Gradio BLocks Party Space, I am trying to -
221
  - Provide a capability to slow down your video
222
  - Timelapse your video
223
 
@@ -265,7 +265,7 @@ with demo:
265
  #For TimeLapse
266
  with gr.Row():
267
  #to copy paste required gif transcript / or to populate by itself on pressing the button
268
- text_timelapse_transcript = gr.Textbox(label="Transcripts", placeholder="Copy paste transcripts here to create GIF image" , lines = 5, interactive = True )
269
 
270
  def load_timelapse_text(text):
271
  print("****** inside load_timelapse_text() ******")
 
203
  return vid_list, "concat.mp4" #"slomo.mp4", "timelapse.mp4", #"gifimage.gif", "gifimage.mp4" #im, gif_img, gif_vid, vid_cap, #"gifimage.mp4"
204
 
205
 
206
+ sample_video = ["bolt1.mp4"] #["./bolt100.mp4"] #[['./ShiaLaBeouf.mp4']]
207
  sample_vid = gr.Video(label='Video file') #for displaying the example
208
  examples = gr.components.Dataset(components=[sample_vid], samples=[sample_video], type='values')
209
 
 
211
  demo = gr.Blocks()
212
 
213
  with demo:
214
+ gr.Markdown("""# **Watch your video in SloMo or in Timelapse!** """)
215
  gr.Markdown("""
216
  ### **This is still work under progres......** Editing your video using ASR pipeline..
217
 
218
  A Space by [Yuvraj Sharma](https://huggingface.co/ysharma).
219
 
220
+ **Background:** In this Gradio BLocks Party Space, I am trying to -
221
  - Provide a capability to slow down your video
222
  - Timelapse your video
223
 
 
265
  #For TimeLapse
266
  with gr.Row():
267
  #to copy paste required gif transcript / or to populate by itself on pressing the button
268
+ text_timelapse_transcript = gr.Textbox(label="Transcripts", placeholder="Copy paste transcripts here to create GIF image" , lines = 5) #, interactive = True )
269
 
270
  def load_timelapse_text(text):
271
  print("****** inside load_timelapse_text() ******")