Spaces:
Runtime error
Runtime error
seikin_alexey
commited on
Commit
·
5cbf6e6
1
Parent(s):
f446a3a
app4.py
CHANGED
|
@@ -37,7 +37,7 @@ def predict_emotion(selected_audio):
|
|
| 37 |
|
| 38 |
def button_click(selected_audio):
|
| 39 |
emotion, file_path = predict_emotion(selected_audio)
|
| 40 |
-
return emotion,
|
| 41 |
|
| 42 |
# Get the list of audio files for the dropdown
|
| 43 |
audio_files_list = get_audio_files_list()
|
|
|
|
| 37 |
|
| 38 |
def button_click(selected_audio):
|
| 39 |
emotion, file_path = predict_emotion(selected_audio)
|
| 40 |
+
return emotion, gr.Interface.Play("rec/" + selected_audio)
|
| 41 |
|
| 42 |
# Get the list of audio files for the dropdown
|
| 43 |
audio_files_list = get_audio_files_list()
|