nrotem commited on
Commit
ab2f631
·
1 Parent(s): a679624
Files changed (1) hide show
  1. app.py +5 -5
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.inputs.File(label="Video File"),
32
- gr.inputs.File(label="Subtitle File")
33
  ]
34
 
35
- outputs = gr.outputs.File(label="Combined Video with Subtitle")
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."