Omnibus commited on
Commit
1c52b79
·
1 Parent(s): 929d706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -179,7 +179,7 @@ def make_gif():
179
  return out,out
180
  def update_speed(inp,clip_speed):
181
  clip = VideoFileClip(inp)
182
- final = clip.fx( vfx.speedx, float(clip_speed))
183
  final.write_videofile(f'{inp}')
184
  return f'{inp}'
185
  with gr.Blocks() as app:
@@ -194,7 +194,7 @@ with gr.Blocks() as app:
194
  frame_count=gr.Textbox(label="Frame Count",interactive = False)
195
  fps=gr.Textbox(label="FPS",interactive = False)
196
  outp_file=gr.Files()
197
- clip_speed = gr.Slider(label="Speed", min=0.01, max=2, value=1, step=0.01)
198
  speed_btn = gr.Button("Update Speed")
199
  with gr.Row():
200
  start_f = gr.Textbox(label = "Start", value = "0:00:00", placeholder = "0:00:23",interactive = True)
 
179
  return out,out
180
  def update_speed(inp,clip_speed):
181
  clip = VideoFileClip(inp)
182
+ final = clip.fx( vfx.speedx, clip_speed)
183
  final.write_videofile(f'{inp}')
184
  return f'{inp}'
185
  with gr.Blocks() as app:
 
194
  frame_count=gr.Textbox(label="Frame Count",interactive = False)
195
  fps=gr.Textbox(label="FPS",interactive = False)
196
  outp_file=gr.Files()
197
+ clip_speed = gr.Slider(label="Speed", minimum=0.01, maximum=2, value=1, step=0.01)
198
  speed_btn = gr.Button("Update Speed")
199
  with gr.Row():
200
  start_f = gr.Textbox(label = "Start", value = "0:00:00", placeholder = "0:00:23",interactive = True)