Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,7 @@ def process_video_audio(video_path):
|
|
| 34 |
if len(wav[0]) > 261540:
|
| 35 |
print(wav.shape)
|
| 36 |
train_audio_wave[0, :] = wav[0][:261540]
|
|
|
|
| 37 |
else:
|
| 38 |
|
| 39 |
print(wav.shape)
|
|
@@ -99,7 +100,7 @@ iface = gr.Interface(
|
|
| 99 |
gr.Audio(label = "Audio"),
|
| 100 |
gr.Textbox(label="Predicted Emotion")
|
| 101 |
],
|
| 102 |
-
title="Emotion
|
| 103 |
description="Upload a video and get the predicted emotion."
|
| 104 |
)
|
| 105 |
|
|
|
|
| 34 |
if len(wav[0]) > 261540:
|
| 35 |
print(wav.shape)
|
| 36 |
train_audio_wave[0, :] = wav[0][:261540]
|
| 37 |
+
|
| 38 |
else:
|
| 39 |
|
| 40 |
print(wav.shape)
|
|
|
|
| 100 |
gr.Audio(label = "Audio"),
|
| 101 |
gr.Textbox(label="Predicted Emotion")
|
| 102 |
],
|
| 103 |
+
title="Emotion recognition with multi-modal neural network",
|
| 104 |
description="Upload a video and get the predicted emotion."
|
| 105 |
)
|
| 106 |
|