DanielDBGC commited on
Commit
b0df8f4
1 Parent(s): 52008ae
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
2
- import transformers
 
 
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' #gr.Audio(label="Record or upload someone speaking!", sources=['upload', 'microphone'], type = 'numpy'),
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
  )