Jeffgold commited on
Commit
68299e3
·
1 Parent(s): 6b59874

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -97,12 +97,12 @@ quality = gr.Dropdown(
97
  aspect_ratio = gr.Textbox(default="16:9", lines=1, label="Aspect ratio (width:height)")
98
  video_url = gr.Textbox(label="Or enter video URL")
99
 
100
- iface = gr.Interface(
101
- convert_video,
102
- [video_file, quality, aspect_ratio, video_url],
103
- gr.outputs.File(label="Download video file(s)"),
104
- title="Video Transcoder",
105
- description="Transcodes a video file or URL to multiple resolutions for adaptive streaming. Higher quality values reduce the video bitrate."
 
106
  )
107
-
108
- iface.launch()
 
97
  aspect_ratio = gr.Textbox(default="16:9", lines=1, label="Aspect ratio (width:height)")
98
  video_url = gr.Textbox(label="Or enter video URL")
99
 
100
+ interface = gr.Interface(
101
+ fn=convert_video,
102
+ inputs=[video_file, quality, aspect_ratio, video_url],
103
+ outputs=gr.Textbox(label="Output"),
104
+ title="Video Converter",
105
+ description="A simple video converter app",
106
+ allow_flagging=False,
107
  )
108
+ interface.launch()