malleswar commited on
Commit
cb74294
·
verified ·
1 Parent(s): ebbe76c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -148,15 +148,15 @@ def process_video(video_file, language="hindi", progress=gr.Progress()):
148
  print(f"FFmpeg command: {' '.join(ffmpeg_cmd)}")
149
 
150
  try:
151
- result = subprocess.run(
152
  ffmpeg_cmd,
153
  check=True,
154
  capture_output=True,
155
  text=True,
156
  timeout=600
157
  )
158
- print(f"FFmpeg stdout: {result.stdout}")
159
- print(f"FFmpeg stderr: {result.stderr}")
160
  except subprocess.CalledProcessError as e:
161
  print(f"FFmpeg failed!")
162
  print(f"Return code: {e.returncode}")
 
148
  print(f"FFmpeg command: {' '.join(ffmpeg_cmd)}")
149
 
150
  try:
151
+ ffmpeg_result = subprocess.run(
152
  ffmpeg_cmd,
153
  check=True,
154
  capture_output=True,
155
  text=True,
156
  timeout=600
157
  )
158
+ print(f"FFmpeg stdout: {ffmpeg_result.stdout}")
159
+ print(f"FFmpeg stderr: {ffmpeg_result.stderr}")
160
  except subprocess.CalledProcessError as e:
161
  print(f"FFmpeg failed!")
162
  print(f"Return code: {e.returncode}")