pragnakalp commited on
Commit
614403c
·
1 Parent(s): cb59ff9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -14,8 +14,6 @@ import numpy as np
14
  import tensorflow as tf
15
  import gradio as gr
16
 
17
- # import pyaudio
18
- # import wave
19
  from tqdm import tqdm
20
  from keras.models import Sequential
21
  from keras.layers import Dense
@@ -64,15 +62,9 @@ model.add(Dropout(0.2))
64
  model.add(Dense(numLabels, activation='softmax'))
65
  model.compile(loss='binary_crossentropy', optimizer='adam',
66
  metrics=['accuracy'])
67
- # print(model.summary(), file=sys.stderr)
68
 
69
  model.load_weights('speech_emotion_detection_ravdess_savee.h5')
70
 
71
- # app = Flask(__name__)
72
-
73
- # app._static_folder = os.path.join( "/home/ubuntu/Desktop/nlpdemos/server_demos/speech_emotion/static" )
74
-
75
-
76
  def selected_audio(audio):
77
  try:
78
  if audio and audio != 'Please select any of the following options':
 
14
  import tensorflow as tf
15
  import gradio as gr
16
 
 
 
17
  from tqdm import tqdm
18
  from keras.models import Sequential
19
  from keras.layers import Dense
 
62
  model.add(Dense(numLabels, activation='softmax'))
63
  model.compile(loss='binary_crossentropy', optimizer='adam',
64
  metrics=['accuracy'])
 
65
 
66
  model.load_weights('speech_emotion_detection_ravdess_savee.h5')
67
 
 
 
 
 
 
68
  def selected_audio(audio):
69
  try:
70
  if audio and audio != 'Please select any of the following options':