Jeffgold commited on
Commit
8c7b9ad
·
1 Parent(s): a16bdc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -27,4 +27,7 @@ def transcode_video(video_file, output_file, output_format, output_fps):
27
  # Return the path to the transcoded file.
28
  return output_file
29
 
30
- gr.Interface(transcode_video, inputs={"video_file": File("Select a video file"), "output_file": File("Output file", accept=".m3u8", mode="upload")}).launch()
 
 
 
 
27
  # Return the path to the transcoded file.
28
  return output_file
29
 
30
+ def name_file(file_name):
31
+ return file_name + ".m3u8"
32
+
33
+ gr.Interface(transcode_video, inputs={"video_file": File("Select a video file"), "output_file": File("Output file", accept=".m3u8", mode="upload")}, outputs={"output_file": File(name_file)}).launch()