Adal Abilbekov commited on
Commit
9dc2f5b
1 Parent(s): ae5b658

The finall commit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def get_probs(audio):
41
  prediction = emotions[probs.argmax(dim=1).item()]
42
  return dict(zip(emotions, list(map(float, probs[0]))))
43
 
44
- mic = gr.Audio(source="microphone", type="numpy", label="Speak here...")
45
  label = gr.Label()
46
 
47
  iface = gr.Interface(fn=get_probs, inputs=mic, outputs=label)
 
41
  prediction = emotions[probs.argmax(dim=1).item()]
42
  return dict(zip(emotions, list(map(float, probs[0]))))
43
 
44
+ mic = gr.Audio(sources="microphone", type="numpy", label="Speak here...")
45
  label = gr.Label()
46
 
47
  iface = gr.Interface(fn=get_probs, inputs=mic, outputs=label)