asigalov61 commited on
Commit
21fb761
·
verified ·
1 Parent(s): 4a6844a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def ID_MIDI(input_midi):
111
  output_midi_path_str = 'none'
112
 
113
  if new_midi_md5hash in monster_midi_titles['md5_hashes_titles_dict']:
114
- title = monster_midi_titles['md5_hashes_titles_dict'][new_midi_md5hash][0].split(' --- ')
115
 
116
  song = title[0]
117
  artist = title[1]
 
111
  output_midi_path_str = 'none'
112
 
113
  if new_midi_md5hash in monster_midi_titles['md5_hashes_titles_dict']:
114
+ title = random.choice(monster_midi_titles['md5_hashes_titles_dict'][new_midi_md5hash]).split(' --- ')
115
 
116
  song = title[0]
117
  artist = title[1]