Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -21,18 +21,18 @@ def combine_video_subtitle(video_file, subtitle_file):
|
|
21 |
]
|
22 |
|
23 |
subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
24 |
-
print("ffmpeg stdout:", subprocess.stdout.decode())
|
25 |
-
print("ffmpeg stderr:", subprocess.stderr.decode())
|
26 |
|
27 |
return output_file
|
28 |
|
29 |
# Create Gradio interface
|
30 |
inputs = [
|
31 |
-
gr.
|
32 |
-
gr.
|
33 |
]
|
34 |
|
35 |
-
outputs = gr.
|
36 |
|
37 |
title = "Video Subtitle Combiner"
|
38 |
description = "Combine a video file and a subtitle file using ffmpeg."
|
|
|
21 |
]
|
22 |
|
23 |
subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
24 |
+
# print("ffmpeg stdout:", subprocess.stdout.decode())
|
25 |
+
# print("ffmpeg stderr:", subprocess.stderr.decode())
|
26 |
|
27 |
return output_file
|
28 |
|
29 |
# Create Gradio interface
|
30 |
inputs = [
|
31 |
+
gr.File(label="Video File"),
|
32 |
+
gr.File(label="Subtitle File")
|
33 |
]
|
34 |
|
35 |
+
outputs = gr.File(label="Combined Video with Subtitle")
|
36 |
|
37 |
title = "Video Subtitle Combiner"
|
38 |
description = "Combine a video file and a subtitle file using ffmpeg."
|