THP2903 commited on
Commit
f3f031f
·
verified ·
1 Parent(s): 5e1d593

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- num_videos = 1
12
- train_visual = np.zeros([num_videos, 120, 120, 3, 10])
13
- train_audio_wave = np.zeros([num_videos, 261540])
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