Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ from tqdm import tqdm
|
|
12 |
import gradio as gr
|
13 |
|
14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
15 |
new_sample_rate = 8000
|
16 |
transform = torchaudio.transforms.Resample(orig_freq=sample_rate, new_freq=new_sample_rate)
|
17 |
|
|
|
12 |
import gradio as gr
|
13 |
|
14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
15 |
+
sample_rate = 16000
|
16 |
new_sample_rate = 8000
|
17 |
transform = torchaudio.transforms.Resample(orig_freq=sample_rate, new_freq=new_sample_rate)
|
18 |
|