Add application file
Browse files
app.py
CHANGED
@@ -28,12 +28,12 @@ def create_video(video_file: gr.inputs.File, subtitles_file: gr.inputs.File, fon
|
|
28 |
iface = gr.Interface(
|
29 |
fn=create_video,
|
30 |
inputs=[
|
31 |
-
gr.inputs.
|
32 |
gr.inputs.File(label="Subtitles File"),
|
33 |
-
gr.inputs.
|
34 |
-
gr.inputs.Slider(minimum=
|
35 |
gr.inputs.Dropdown(choices=[1, 4], default=1, label="Border Style"),
|
36 |
],
|
37 |
-
outputs=gr.outputs.
|
38 |
)
|
39 |
iface.launch()
|
|
|
28 |
iface = gr.Interface(
|
29 |
fn=create_video,
|
30 |
inputs=[
|
31 |
+
gr.inputs.Video(label="Video File"),
|
32 |
gr.inputs.File(label="Subtitles File"),
|
33 |
+
gr.inputs.Textbox(default="ProbaPro-Bold", label="Font Name"),
|
34 |
+
gr.inputs.Slider(minimum=10, maximum=30, default=22, label="Font Size"),
|
35 |
gr.inputs.Dropdown(choices=[1, 4], default=1, label="Border Style"),
|
36 |
],
|
37 |
+
outputs=gr.outputs.Video() # Replace with appropriate output type
|
38 |
)
|
39 |
iface.launch()
|