fffiloni commited on
Commit
82d80a3
โ€ข
1 Parent(s): 3622a55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -74,12 +74,13 @@ def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
74
  })
75
 
76
  rdata = json.loads(r.text)
77
- print(rdata['data']['tasks'][0]['download_link'])
 
78
  #assert rdata['status'] == 1, "probably incorrect e-mail"
79
  #track = rdata['data']['tasks']['download_link']
80
 
81
  #print(track)
82
- return "done"
83
 
84
  def get_track_by_tags(tags, pat, duration, gen_intensity, gen_mode, maxit=20):
85
 
 
74
  })
75
 
76
  rdata = json.loads(r.text)
77
+ track=rdata['data']['tasks'][0]['download_link']
78
+ print(track)
79
  #assert rdata['status'] == 1, "probably incorrect e-mail"
80
  #track = rdata['data']['tasks']['download_link']
81
 
82
  #print(track)
83
+ return track
84
 
85
  def get_track_by_tags(tags, pat, duration, gen_intensity, gen_mode, maxit=20):
86