asigalov61 commited on
Commit
40c3c42
1 Parent(s): 52381e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -249,6 +249,12 @@ def ClassifyMIDI(input_midi):
249
  print('Most common song-artist classification label ratio:' , results.count(final_result) / len(results))
250
  print('=' * 70)
251
 
 
 
 
 
 
 
252
  print('All classification labels summary:')
253
  print('=' * 70)
254
 
@@ -288,11 +294,7 @@ def ClassifyMIDI(input_midi):
288
 
289
 
290
 
291
- classification_summary_string += 'Most common classification label: ' + str(classifier_labels[0][final_result-384]) + '\n'
292
- classification_summary_string += 'Most common classification label ratio: ' + str(results.count(final_result) / len(results)) + '\n'
293
- classification_summary_string += 'Most common classification label index '+ str(final_result) + '\n'
294
- classification_summary_string += '=' * 70
295
- classification_summary_string += '\n'
296
 
297
  print('All classification labels summary:')
298
  print('=' * 70)
 
249
  print('Most common song-artist classification label ratio:' , results.count(final_result) / len(results))
250
  print('=' * 70)
251
 
252
+ classification_summary_string += 'Most common classification genre label: ' + str(mc_genre) + '\n'
253
+ classification_summary_string += 'Most common classification song-artist label: ' + str(mc_song_artist) + '\n'
254
+ classification_summary_string += 'Most common song-artist classification label ratio: '+ str(results.count(final_result) / len(results)) + '\n'
255
+ classification_summary_string += '=' * 70
256
+ classification_summary_string += '\n'
257
+
258
  print('All classification labels summary:')
259
  print('=' * 70)
260
 
 
294
 
295
 
296
 
297
+
 
 
 
 
298
 
299
  print('All classification labels summary:')
300
  print('=' * 70)