Commit
•
d59f270
1
Parent(s):
2a2eed2
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ def classify_sentiment(audio):
|
|
12 |
pred = pipe(audio)
|
13 |
return {dic["label"]: dic["score"] for dic in pred}
|
14 |
|
15 |
-
input_audio = [gr.
|
16 |
-
label = gr.
|
17 |
|
18 |
################### Gradio Web APP ################################
|
19 |
|
|
|
12 |
pred = pipe(audio)
|
13 |
return {dic["label"]: dic["score"] for dic in pred}
|
14 |
|
15 |
+
input_audio = [gr.Audio(source="microphone", type="filepath", label="Record/ Drop audio")]
|
16 |
+
label = gr.Label(num_top_classes=5)
|
17 |
|
18 |
################### Gradio Web APP ################################
|
19 |
|