Kvikontent commited on
Commit
ebbb318
1 Parent(s): b762f57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -65,18 +65,18 @@ def video_editor(input_video, start_time, end_time, playback_speed, create_gif,
65
  iface = gr.Interface(
66
  fn=video_editor,
67
  inputs=[
68
- gr.inputs.Video(label="Input Video"),
69
- gr.inputs.Textbox(default="00:00:00", label="Start Time (HH:MM:SS)"),
70
- gr.inputs.Textbox(default="00:00:10", label="End Time (HH:MM:SS)"),
71
- gr.inputs.Slider(minimum=0.25, maximum=4.0, step=0.25, default=1, label="Playback Speed"),
72
- gr.inputs.Checkbox(default=False, label="Create GIF instead of a video"),
73
- gr.inputs.Slider(minimum=0, maximum=360, step=90, default=0, label="Rotation (Degrees)"),
74
- gr.inputs.Textbox(default="", label="Watermark Text"),
75
- gr.inputs.Slider(minimum=0.5, maximum=3.0, step=0.1, default=1, label="Brightness Factor"),
76
- gr.inputs.Slider(minimum=0.1, maximum=2.0, step=0.1, default=1, label="Contrast"),
77
- gr.inputs.Slider(minimum=0, maximum=2.0, step=0.1, default=1, label="Saturation")
78
  ],
79
- outputs=gr.outputs.Video(label="Output Video/GIF"),
80
  )
81
 
82
  # Launch the application
 
65
  iface = gr.Interface(
66
  fn=video_editor,
67
  inputs=[
68
+ gr.Video(label="Input Video"),
69
+ gr.Textbox(default="00:00:00", label="Start Time (HH:MM:SS)"),
70
+ gr.Textbox(default="00:00:10", label="End Time (HH:MM:SS)"),
71
+ gr.Slider(minimum=0.25, maximum=4.0, step=0.25, default=1, label="Playback Speed"),
72
+ gr.Checkbox(default=False, label="Create GIF instead of a video"),
73
+ gr.Slider(minimum=0, maximum=360, step=90, default=0, label="Rotation (Degrees)"),
74
+ gr.Textbox(default="", label="Watermark Text"),
75
+ gr.Slider(minimum=0.5, maximum=3.0, step=0.1, default=1, label="Brightness Factor"),
76
+ gr.Slider(minimum=0.1, maximum=2.0, step=0.1, default=1, label="Contrast"),
77
+ gr.Slider(minimum=0, maximum=2.0, step=0.1, default=1, label="Saturation")
78
  ],
79
+ outputs=gr.Video(label="Output Video/GIF"),
80
  )
81
 
82
  # Launch the application