fffiloni commited on
Commit
1d45d8a
โ€ข
1 Parent(s): 0aaa7a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def get_track_by_tags(tags, pat, duration, gen_intensity, gen_mode, maxit=20):
111
 
112
  def generate_track_by_prompt(pat, prompt, duration, gen_intensity, gen_mode):
113
  try:
114
- _, tags = get_tags_for_prompts(minilm, mubert_tags_embeddings, [prompt])[0]
115
  result = get_track_by_tags(tags, pat, int(duration), gen_intensity, gen_mode)
116
  print(result)
117
  return result, ",".join(tags), "Success"
 
111
 
112
  def generate_track_by_prompt(pat, prompt, duration, gen_intensity, gen_mode):
113
  try:
114
+ _, tags = get_tags_for_prompts(minilm, mubert_tags_embeddings, prompt)[0]
115
  result = get_track_by_tags(tags, pat, int(duration), gen_intensity, gen_mode)
116
  print(result)
117
  return result, ",".join(tags), "Success"