Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -33,10 +33,10 @@ def name_file(file_name):
|
|
33 |
def get_file_name(file):
|
34 |
return file.name
|
35 |
|
36 |
-
input_video_file = File(accept=".mp4"
|
37 |
|
38 |
gr.Interface(
|
39 |
transcode_video,
|
40 |
inputs={"input_video_file": input_video_file},
|
41 |
-
outputs={"output_file": File(name_file(get_file_name(input_video_file)), accept=".m3u8"
|
42 |
).launch()
|
|
|
33 |
def get_file_name(file):
|
34 |
return file.name
|
35 |
|
36 |
+
input_video_file = File(accept=".mp4")
|
37 |
|
38 |
gr.Interface(
|
39 |
transcode_video,
|
40 |
inputs={"input_video_file": input_video_file},
|
41 |
+
outputs={"output_file": File(name_file(get_file_name(input_video_file)), accept=".m3u8")}
|
42 |
).launch()
|