File size: 217 Bytes
ed7c95b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import gradio as gr
def emotiondetection(audio):
  text = "emotion"
  return text

gr.Interface(
    fn = emotiondetection, 
    inputs = gr.Audio(source="microphone", type="filepath"), 
    outputs = "text").launch()