Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,7 @@ from huggingface_hub import from_pretrained_fastai
|
|
2 |
import gradio as gr
|
3 |
from fastai.text.all import *
|
4 |
|
5 |
-
learner =
|
6 |
-
labels = learner.dls.vocab
|
7 |
|
8 |
# Definimos una funci贸n que se encarga de llevar a cabo las predicciones
|
9 |
def predict(waveform):
|
|
|
2 |
import gradio as gr
|
3 |
from fastai.text.all import *
|
4 |
|
5 |
+
learner = torch.jit.load("soundWave.pth")
|
|
|
6 |
|
7 |
# Definimos una funci贸n que se encarga de llevar a cabo las predicciones
|
8 |
def predict(waveform):
|