Jeffgold commited on
Commit
45a6dfa
·
1 Parent(s): 67df095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -33,8 +33,12 @@ def name_file(file_name):
33
  def get_file_name(file):
34
  return file.name
35
 
 
 
 
 
36
  gr.Interface(
37
  transcode_video,
38
- inputs={"input_video_file": File(accept=".mp4, .mov, .avi, .flv, .wmv, .mpeg, .mpg, .ogg, .webm")},
39
- outputs={"output_file": File(name_file(get_file_name(input_video_file)), accept=".m3u8")}
40
  ).launch()
 
33
  def get_file_name(file):
34
  return file.name
35
 
36
+ input_video_file = File(accept=".mp4, .mov, .avi, .flv, .wmv, .mpeg, .mpg, .ogg, .webm", name=get_file_name(input_video_file))
37
+
38
+ outputs={"output_file": File(name_file(get_file_name(input_video_file)), accept=".m3u8", name="Output File")}
39
+
40
  gr.Interface(
41
  transcode_video,
42
+ inputs={"input_video_file": input_video_file},
43
+ outputs=outputs
44
  ).launch()