asigalov61 commited on
Commit
1904770
1 Parent(s): bf1555a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -100,7 +100,7 @@ def classify_GPU(input_data):
100
 
101
  results.append(result)
102
 
103
- return results
104
 
105
  # =================================================================================================
106
 
@@ -202,7 +202,7 @@ def ClassifyMIDI(input_midi):
202
  classification_summary_string += '=' * 70
203
  classification_summary_string += '\n'
204
 
205
- results = classify_GPU(input_data)
206
 
207
  all_results_labels = [classifier_labels[0][r-384] for r in results]
208
  final_result = mode(results)
@@ -243,7 +243,7 @@ def ClassifyMIDI(input_midi):
243
  output_score = processed_scores[score_idx][1]
244
 
245
  print('=' * 70)
246
- print('Sample INTs', output[:15])
247
  print('=' * 70)
248
 
249
  fn1 = processed_scores[score_idx][0]
 
100
 
101
  results.append(result)
102
 
103
+ return output, results
104
 
105
  # =================================================================================================
106
 
 
202
  classification_summary_string += '=' * 70
203
  classification_summary_string += '\n'
204
 
205
+ output, results = classify_GPU(input_data)
206
 
207
  all_results_labels = [classifier_labels[0][r-384] for r in results]
208
  final_result = mode(results)
 
243
  output_score = processed_scores[score_idx][1]
244
 
245
  print('=' * 70)
246
+ print('Sample INTs', results[:15])
247
  print('=' * 70)
248
 
249
  fn1 = processed_scores[score_idx][0]