Spaces:
Runtime error
Runtime error
harveysamson
commited on
Commit
·
21763f8
1
Parent(s):
cd87e9f
change input type
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def inference(path):
|
|
31 |
outputs = {config.id2label[i]: float(round(score,2)) for i, score in enumerate(scores)}
|
32 |
return outputs
|
33 |
|
34 |
-
inputs = gr.inputs.Audio(label="Input Audio", type="filepath", source="
|
35 |
outputs = gr.outputs.Label(type="confidences", label = "Output Scores")
|
36 |
title = "Wav2Vec2 Speech Emotion Recognition"
|
37 |
description = "This is a demo of the Wav2Vec2 Speech Emotion Recognition model. Upload an audio file and the top emotions predicted will be displayed."
|
|
|
31 |
outputs = {config.id2label[i]: float(round(score,2)) for i, score in enumerate(scores)}
|
32 |
return outputs
|
33 |
|
34 |
+
inputs = gr.inputs.Audio(label="Input Audio", type="filepath", source="microphone")
|
35 |
outputs = gr.outputs.Label(type="confidences", label = "Output Scores")
|
36 |
title = "Wav2Vec2 Speech Emotion Recognition"
|
37 |
description = "This is a demo of the Wav2Vec2 Speech Emotion Recognition model. Upload an audio file and the top emotions predicted will be displayed."
|
src/__pycache__/modeling_outputs.cpython-39.pyc
CHANGED
Binary files a/src/__pycache__/modeling_outputs.cpython-39.pyc and b/src/__pycache__/modeling_outputs.cpython-39.pyc differ
|
|
src/__pycache__/models.cpython-39.pyc
CHANGED
Binary files a/src/__pycache__/models.cpython-39.pyc and b/src/__pycache__/models.cpython-39.pyc differ
|
|