asigalov61 commited on
Commit
5d3e0a8
1 Parent(s): 947b028

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -11,6 +11,8 @@ from sentence_transformers import util
11
 
12
  import numpy as np
13
 
 
 
14
  import gradio as gr
15
 
16
  import copy
@@ -223,17 +225,17 @@ if __name__ == "__main__":
223
  soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
224
  print('Loading files list...')
225
 
226
- all_MIDI_files_names = TMIDIX.Tegridy_Any_Pickle_File_Reader('all_MIDI_files_names')
227
  print('=' * 70)
228
 
229
  print('Loading MIDI corpus embeddings...')
230
 
231
- corpus_embeddings = np.load('MIDI_corpus_embeddings_all-mpnet-base-v2.npz')['data']
232
  print('Done!')
233
  print('=' * 70)
234
 
235
  print('Loading Sentence Transformer model...')
236
- model = SentenceTransformer('all-mpnet-base-v2')
237
  print('Done!')
238
  print('=' * 70)
239
 
 
11
 
12
  import numpy as np
13
 
14
+ from datasets import load_dataset
15
+
16
  import gradio as gr
17
 
18
  import copy
 
225
  soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
226
  print('Loading files list...')
227
 
228
+ all_MIDI_files_names = TMIDIX.Tegridy_Any_Pickle_File_Reader('LAKH_all_MIDI_files_names')
229
  print('=' * 70)
230
 
231
  print('Loading MIDI corpus embeddings...')
232
 
233
+ corpus_embeddings = np.load('MIDI_corpus_embeddings_all-MiniLM-L6-v2.npz')['data']
234
  print('Done!')
235
  print('=' * 70)
236
 
237
  print('Loading Sentence Transformer model...')
238
+ model = SentenceTransformer('all-MiniLM-L6-v2')
239
  print('Done!')
240
  print('=' * 70)
241