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()