Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,8 @@ def get_track_by_tags(tags, pat, duration, gen_intensity, gen_mode, maxit=20):
|
|
49 |
})
|
50 |
|
51 |
rdata = json.loads(r.text)
|
52 |
-
|
|
|
53 |
trackurl = rdata['data']['tasks'][0]['download_link']
|
54 |
|
55 |
print('Generating track ', end='')
|
|
|
49 |
})
|
50 |
|
51 |
rdata = json.loads(r.text)
|
52 |
+
print(rdata)
|
53 |
+
#assert rdata['status'] == 1, rdata['error']['text']
|
54 |
trackurl = rdata['data']['tasks'][0]['download_link']
|
55 |
|
56 |
print('Generating track ', end='')
|