Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
|
|
72 |
})
|
73 |
|
74 |
rdata = json.loads(r.text)
|
75 |
-
print(rdata['data']['tasks'])
|
76 |
#assert rdata['status'] == 1, "probably incorrect e-mail"
|
77 |
#track = rdata['data']['tasks']['download_link']
|
78 |
|
@@ -97,7 +97,7 @@ def get_track_by_tags(tags, pat, duration, gen_intensity, gen_mode, maxit=20):
|
|
97 |
rdata = json.loads(r.text)
|
98 |
print(rdata)
|
99 |
#assert rdata['status'] == 1, rdata['error']['text']
|
100 |
-
trackurl = rdata['data']['tasks'][0]
|
101 |
|
102 |
print('Generating track ', end='')
|
103 |
for i in range(maxit):
|
|
|
72 |
})
|
73 |
|
74 |
rdata = json.loads(r.text)
|
75 |
+
print(rdata['data']['tasks']['download_link'])
|
76 |
#assert rdata['status'] == 1, "probably incorrect e-mail"
|
77 |
#track = rdata['data']['tasks']['download_link']
|
78 |
|
|
|
97 |
rdata = json.loads(r.text)
|
98 |
print(rdata)
|
99 |
#assert rdata['status'] == 1, rdata['error']['text']
|
100 |
+
trackurl = rdata['data']['tasks'][0]
|
101 |
|
102 |
print('Generating track ', end='')
|
103 |
for i in range(maxit):
|