DanielDBGC commited on
Commit
3edc82e
1 Parent(s): 54fc0d8
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ 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["path"])
 
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
+ print(input_sound)
10
+ predictions = pipeline(input_sound)
11
  return {p["label"]: p["score"] for p in predictions}
12
 
13
  gradio_app = gr.Interface(