Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def get_track_by_tags(tags, pat, duration, gen_intensity, gen_mode, maxit=20):
|
|
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,
|
116 |
print(result)
|
117 |
return result, ",".join(tags), "Success"
|
118 |
except Exception as e:
|
|
|
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"
|
118 |
except Exception as e:
|