awerks commited on
Commit
4eccfa8
1 Parent(s): 0eaefdf

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.File(label="Video File"),
32
  gr.inputs.File(label="Subtitles File"),
33
- gr.inputs.Text(default="ProbaPro-Bold", label="Font Name"),
34
- gr.inputs.Slider(minimum=1, maximum=30, default=22, label="Font Size"),
35
  gr.inputs.Dropdown(choices=[1, 4], default=1, label="Border Style"),
36
  ],
37
- outputs=gr.outputs.File() # Replace with appropriate output type
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()