PoTaTo721 commited on
Commit
abfe079
1 Parent(s): 28c720a

Using ffmpeg instead of sox

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -24,6 +24,10 @@ from functools import partial
24
  import gradio as gr
25
  import librosa
26
  import torch
 
 
 
 
27
  from loguru import logger
28
  from transformers import AutoTokenizer
29
 
 
24
  import gradio as gr
25
  import librosa
26
  import torch
27
+ import torchaudio
28
+
29
+ torchaudio.set_audio_backend("ffmpeg")
30
+
31
  from loguru import logger
32
  from transformers import AutoTokenizer
33