Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,13 +41,13 @@ def get_track_by_tags(tags, pat, duration, maxit=20, loop=False):
|
|
41 |
|
42 |
|
43 |
def generate_track_by_prompt(prompt):
|
44 |
-
try:
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
except Exception as e:
|
49 |
-
return
|
50 |
|
51 |
|
52 |
-
iface = gr.Interface(fn=generate_track_by_prompt, inputs=["text"], outputs=[gr.
|
53 |
iface.launch()
|
|
|
41 |
|
42 |
|
43 |
def generate_track_by_prompt(prompt):
|
44 |
+
#try:
|
45 |
+
# pat = get_pat("[email protected]")
|
46 |
+
# _, tags = get_tags_for_prompts(minilm, mubert_tags_embeddings, [prompt, ])[0]
|
47 |
+
# return get_track_by_tags(tags, pat, int(30), loop=False)
|
48 |
+
#except Exception as e:
|
49 |
+
return "hello it is me"
|
50 |
|
51 |
|
52 |
+
iface = gr.Interface(fn=generate_track_by_prompt, inputs=["text"], outputs=[gr.Text(label="Result")])
|
53 |
iface.launch()
|