fffiloni commited on
Commit
571db8d
1 Parent(s): db092b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- 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 None
50
 
51
 
52
- iface = gr.Interface(fn=generate_track_by_prompt, inputs=["text"], outputs=[gr.Audio(label="Result")])
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()