jmparejaz commited on
Commit
c20d21c
1 Parent(s): 3c2d085

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -37,7 +37,12 @@ def inference_text(audio):
37
  result=sentiment_task(text)
38
  return result
39
 
40
-
 
 
 
 
 
41
 
42
  app=gr.Interface(title="Speech Sentiment Classification",fn=inference_text,inputs=[audio],outputs=gr.DataFrame())
43
 
 
37
  result=sentiment_task(text)
38
  return result
39
 
40
+ audio = gr.Audio(
41
+ label="Input Audio",
42
+ show_label=False,
43
+ source="microphone",
44
+ type="filepath"
45
+ )
46
 
47
  app=gr.Interface(title="Speech Sentiment Classification",fn=inference_text,inputs=[audio],outputs=gr.DataFrame())
48