Spaces:
Build error
Build error
DanielDBGC
commited on
Commit
·
b0df8f4
1
Parent(s):
52008ae
tests
Browse files
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import
|
|
|
|
|
|
|
| 3 |
|
| 4 |
pipeline = pipeline("audio-classification", model="DanielDBGC/my_awesome_lang_class_mind_model")
|
| 5 |
|
|
@@ -13,7 +15,7 @@ def predict(input_sound):
|
|
| 13 |
|
| 14 |
gradio_app = gr.Interface(
|
| 15 |
predict,
|
| 16 |
-
inputs= 'Test'
|
| 17 |
outputs=#[gr.Label(label="Result", num_top_classes=3)],
|
| 18 |
title="Guess the language!",
|
| 19 |
)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from datasets import load_dataset
|
| 3 |
+
import torch
|
| 4 |
+
from transformers import pipeline
|
| 5 |
|
| 6 |
pipeline = pipeline("audio-classification", model="DanielDBGC/my_awesome_lang_class_mind_model")
|
| 7 |
|
|
|
|
| 15 |
|
| 16 |
gradio_app = gr.Interface(
|
| 17 |
predict,
|
| 18 |
+
inputs= 'Test'#gr.Audio(label="Record or upload someone speaking!", sources=['upload', 'microphone'], type = 'numpy'),
|
| 19 |
outputs=#[gr.Label(label="Result", num_top_classes=3)],
|
| 20 |
title="Guess the language!",
|
| 21 |
)
|