Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
|
|
78 |
#assert rdata['status'] == 1, "probably incorrect e-mail"
|
79 |
#track = rdata['data']['tasks']['download_link']
|
80 |
|
81 |
#print(track)
|
82 |
-
return
|
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 |
|