NeerAbhy commited on
Commit
abd572c
·
verified ·
1 Parent(s): c46fb3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(source="upload", type="filepath", label="Upload File", optional=True)
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)