Egor Kopylov commited on
Commit
5517217
1 Parent(s): 691f91c
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +18 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ venv
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ from transformers import pipeline
5
+
6
+ pipe = pipeline("audio-classification", model="Aniemore/wavlm-emotion-russian-resd")
7
+ def recognize(name):
8
+
9
+ return pipe(name)
10
+
11
+
12
+ demo = gr.Interface(
13
+ fn=recognize,
14
+ inputs=[
15
+ gr.Audio(source="microphone", type="filepath")
16
+ ], outputs="text")
17
+
18
+ demo.launch()