Adal Abilbekov
commited on
Commit
•
ee8263b
1
Parent(s):
fabb471
Fixed errors
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def get_probs(mic=None, file=None):
|
|
46 |
return dict(zip(emotions, list(map(float, probs[0]))))
|
47 |
|
48 |
# mic = gr.Audio(sources="microphone", type="numpy", label="Speak here...")
|
49 |
-
input = [gr.Audio(
|
50 |
label = gr.Label()
|
51 |
examples = ['Akzhol_happy.wav']
|
52 |
|
|
|
46 |
return dict(zip(emotions, list(map(float, probs[0]))))
|
47 |
|
48 |
# mic = gr.Audio(sources="microphone", type="numpy", label="Speak here...")
|
49 |
+
input = [gr.Audio(sources="microphone", type="filepath", optional=True), gr.Audio(sources="upload", type="filepath", optional=True)]
|
50 |
label = gr.Label()
|
51 |
examples = ['Akzhol_happy.wav']
|
52 |
|