Spaces:
Paused
Paused
Update app.py
Browse files
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,
|
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"
|