sander-wood commited on
Commit
ca1dc6f
1 Parent(s): ab08646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -37,7 +37,7 @@ examples = [
37
  "a beach with a castle on top of it"
38
  ]
39
 
40
- CLAMP_MODEL_NAME = 'clamp-small-512'
41
  QUERY_MODAL = 'text'
42
  KEY_MODAL = 'music'
43
  TOP_N = 1
@@ -172,10 +172,10 @@ def semantic_music_search(query):
172
  # output += "Genre:\n" + item['genre']+ '\n\n'
173
  # output += "Description:\n" + item['text']+ '\n\n'
174
  # output += "ABC notation:\n" + item['music']+ '\n\n'
175
- print("Title:\n" + item['title'])
176
- print("Artist:\n" + item['artist'])
177
- print("Genre:\n" + item['genre'])
178
- print("Description:\n" + item['text'])
179
  print("ABC notation:\n" + item['music'])
180
  return item["title"], item["artist"], item["genre"], item["text"], item["music"]
181
 
 
37
  "a beach with a castle on top of it"
38
  ]
39
 
40
+ CLAMP_MODEL_NAME = 'sander-wood/clamp-small-512'
41
  QUERY_MODAL = 'text'
42
  KEY_MODAL = 'music'
43
  TOP_N = 1
 
172
  # output += "Genre:\n" + item['genre']+ '\n\n'
173
  # output += "Description:\n" + item['text']+ '\n\n'
174
  # output += "ABC notation:\n" + item['music']+ '\n\n'
175
+ print("Title: " + item['title'])
176
+ print("Artist: " + item['artist'])
177
+ print("Genre: " + item['genre'])
178
+ print("Description: " + item['text'])
179
  print("ABC notation:\n" + item['music'])
180
  return item["title"], item["artist"], item["genre"], item["text"], item["music"]
181