janasumit2911 commited on
Commit
dbbfec0
·
verified ·
1 Parent(s): 3a6406d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ import soundfile as sf
15
 
16
  # Load the model
17
  model = hub.load('Audio_Multiple_v1')
18
-
19
  def class_names_from_csv(class_map_csv_text):
20
  """Returns list of class names corresponding to score vector."""
21
  class_names = []
@@ -60,7 +60,7 @@ def process_audio_file(file_data, url):
60
  confidence_threshold = 0.60
61
  confident_classes = set()
62
 
63
- solutions=[]
64
  exclusion_list = ['Mechanisms','Domestic animals, pets', 'Animal', 'Silence', 'Alarm', 'Wind chime', 'Water', 'Livestock, farm animals, working animals', 'Wild animals', 'Bleat', 'Siren', 'Computer keyboard', 'Toot', 'Shatter', 'Bird','Caw', 'Independent music', 'Tender music', 'Ocean', 'House music', 'Middle Eastern music', 'Swing music', 'Soul music', 'Shofar', 'Motor vehicle (road)', 'White noise','Pink noise', 'Cacophony', 'Sidetone', 'Static', 'Outside, rural or natural', 'Outside, urban or manmade', 'Inside, public space', 'Inside, large room or hall', 'Inside, small room', 'Sound effect' ]
65
  for frame_scores in scores_np:
66
  for i, score in enumerate(frame_scores):
 
15
 
16
  # Load the model
17
  model = hub.load('Audio_Multiple_v1')
18
+ solutions=[]
19
  def class_names_from_csv(class_map_csv_text):
20
  """Returns list of class names corresponding to score vector."""
21
  class_names = []
 
60
  confidence_threshold = 0.60
61
  confident_classes = set()
62
 
63
+
64
  exclusion_list = ['Mechanisms','Domestic animals, pets', 'Animal', 'Silence', 'Alarm', 'Wind chime', 'Water', 'Livestock, farm animals, working animals', 'Wild animals', 'Bleat', 'Siren', 'Computer keyboard', 'Toot', 'Shatter', 'Bird','Caw', 'Independent music', 'Tender music', 'Ocean', 'House music', 'Middle Eastern music', 'Swing music', 'Soul music', 'Shofar', 'Motor vehicle (road)', 'White noise','Pink noise', 'Cacophony', 'Sidetone', 'Static', 'Outside, rural or natural', 'Outside, urban or manmade', 'Inside, public space', 'Inside, large room or hall', 'Inside, small room', 'Sound effect' ]
65
  for frame_scores in scores_np:
66
  for i, score in enumerate(frame_scores):