Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
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()
|