Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
|
|
77 |
rdata = json.loads(r.text)
|
78 |
track=rdata['data']['tasks'][0]['download_link']
|
79 |
print(track)
|
80 |
-
|
81 |
#track = rdata['data']['tasks']['download_link']
|
82 |
|
83 |
#print(track)
|
|
|
77 |
rdata = json.loads(r.text)
|
78 |
track=rdata['data']['tasks'][0]['download_link']
|
79 |
print(track)
|
80 |
+
assert rdata['status'] == 1, "probably incorrect e-mail"
|
81 |
#track = rdata['data']['tasks']['download_link']
|
82 |
|
83 |
#print(track)
|