osanseviero commited on
Commit
61458af
·
1 Parent(s): ca407fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def predict(text):
31
  with tempfile.NamedTemporaryFile(suffix='.mp4') as tmp:
32
  video_path = gr.make_waveform((32000, outputs[0].cpu().numpy().astype(np.float16).ravel()), bars_color=random.choice(COLORS), bar_count=75)
33
  command = f'ffmpeg -y -i {video_path} -vf "scale=250:150" {tmp.name}'
34
- subprocess.run(command.split())
35
 
36
  return (32000, outputs[0][0].cpu().numpy().astype(np.float16)), tmp.name
37
 
 
31
  with tempfile.NamedTemporaryFile(suffix='.mp4') as tmp:
32
  video_path = gr.make_waveform((32000, outputs[0].cpu().numpy().astype(np.float16).ravel()), bars_color=random.choice(COLORS), bar_count=75)
33
  command = f'ffmpeg -y -i {video_path} -vf "scale=250:150" {tmp.name}'
34
+ subprocess.run(command.split(), shell=True)
35
 
36
  return (32000, outputs[0][0].cpu().numpy().astype(np.float16)), tmp.name
37