osanseviero commited on
Commit
6e0dd6c
·
1 Parent(s): 316bcba

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() 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() 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