seikin_alexey commited on
Commit
baeee65
1 Parent(s): 95a631a
Files changed (1) hide show
  1. app2.py +0 -8
app2.py CHANGED
@@ -37,16 +37,8 @@ def predict_emotion(selected_audio):
37
  # Get the list of audio files for the dropdown
38
  audio_files_list = get_audio_files_list()
39
 
40
- def return_audio_clip(audio_text):
41
- post_file_name = audio_text.lower() + '.wav'
42
- filepath = os.path.join("rec",post_file_name)
43
- return filepath
44
-
45
-
46
  # Loading Gradio interface
47
  inputs = gr.Dropdown(label="Select Audio", choices=audio_files_list)
48
- audio_ui=gr.Audio()
49
- inputs.change(return_audio_clip,inputs,audio_ui)
50
 
51
  outputs = "text"
52
  title = "ML Speech Emotion Detection"
 
37
  # Get the list of audio files for the dropdown
38
  audio_files_list = get_audio_files_list()
39
 
 
 
 
 
 
 
40
  # Loading Gradio interface
41
  inputs = gr.Dropdown(label="Select Audio", choices=audio_files_list)
 
 
42
 
43
  outputs = "text"
44
  title = "ML Speech Emotion Detection"