Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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",
|
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)
|