Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,10 +8,9 @@ import numpy as np
|
|
| 8 |
emotion_labels = {0: 'neutral', 1: 'calm', 2: 'happy', 3: 'sad', 4: 'angry', 5: 'fearful'}
|
| 9 |
|
| 10 |
def process_video_audio(video_path, audio_path):
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
train_audio_cnn = np.zeros([num_videos, 150, 512, 1])
|
| 15 |
|
| 16 |
mfcc = torchaudio.transforms.MFCC(n_mfcc=150, melkwargs={"n_fft": 1022, "n_mels": 150})
|
| 17 |
|
|
|
|
| 8 |
emotion_labels = {0: 'neutral', 1: 'calm', 2: 'happy', 3: 'sad', 4: 'angry', 5: 'fearful'}
|
| 9 |
|
| 10 |
def process_video_audio(video_path, audio_path):
|
| 11 |
+
train_visual = np.zeros([1, 120, 120, 3, 10])
|
| 12 |
+
train_audio_wave = np.zeros([1, 261540])
|
| 13 |
+
train_audio_cnn = np.zeros([1, 150, 512, 1])
|
|
|
|
| 14 |
|
| 15 |
mfcc = torchaudio.transforms.MFCC(n_mfcc=150, melkwargs={"n_fft": 1022, "n_mels": 150})
|
| 16 |
|