Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -223,8 +223,8 @@ def prediction(audio):
|
|
223 |
decodes.append(text_transform.int_to_text(decode))
|
224 |
|
225 |
return decode
|
226 |
-
microphone_input = gr.Audio( type="filepath", label="Record")
|
227 |
-
upload_input = gr.Audio(
|
228 |
audio_input = gr.Audio(type='file', label="Upload an audio file")
|
229 |
emotion_output = gr.Textbox(label="Predicted Emotion")
|
230 |
interface = gr.Interface(fn=predict_emotion, inputs=audio_input, outputs=emotion_output)
|
|
|
223 |
decodes.append(text_transform.int_to_text(decode))
|
224 |
|
225 |
return decode
|
226 |
+
#microphone_input = gr.Audio( type="filepath", label="Record")
|
227 |
+
upload_input = gr.Audio( type="filepath", label="Upload File")
|
228 |
audio_input = gr.Audio(type='file', label="Upload an audio file")
|
229 |
emotion_output = gr.Textbox(label="Predicted Emotion")
|
230 |
interface = gr.Interface(fn=predict_emotion, inputs=audio_input, outputs=emotion_output)
|