DanielDBGC commited on
Commit
54fc0d8
1 Parent(s): 5652706

prueba con path

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
6
  pipeline = pipeline("audio-classification", model="DanielDBGC/my_awesome_lang_class_mind_model")
7
 
8
  def predict(input_sound):
9
- predictions = pipeline(input_sound)
10
  return {p["label"]: p["score"] for p in predictions}
11
 
12
  gradio_app = gr.Interface(
 
6
  pipeline = pipeline("audio-classification", model="DanielDBGC/my_awesome_lang_class_mind_model")
7
 
8
  def predict(input_sound):
9
+ predictions = pipeline(input_sound["path"])
10
  return {p["label"]: p["score"] for p in predictions}
11
 
12
  gradio_app = gr.Interface(