Spaces:
Build error
Build error
DanielDBGC
commited on
Commit
·
3edc82e
1
Parent(s):
54fc0d8
path 2
Browse files
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 |
-
|
|
|
|
| 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(
|