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