Spaces:
Runtime error
Runtime error
Kvikontent
commited on
Commit
•
ebbb318
1
Parent(s):
b762f57
Update app.py
Browse files
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.
|
69 |
-
gr.
|
70 |
-
gr.
|
71 |
-
gr.
|
72 |
-
gr.
|
73 |
-
gr.
|
74 |
-
gr.
|
75 |
-
gr.
|
76 |
-
gr.
|
77 |
-
gr.
|
78 |
],
|
79 |
-
outputs=gr.
|
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
|