inigo99 commited on
Commit
e52a1d5
1 Parent(s): bbafd24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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 = from_pretrained_fastai("soundWave.pth")
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):