Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -82,14 +82,16 @@ def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
|
|
82 |
|
83 |
print(rdata)
|
84 |
time.sleep(2)
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
93 |
|
94 |
|
95 |
|
|
|
82 |
|
83 |
print(rdata)
|
84 |
time.sleep(2)
|
85 |
+
track=rdata['data']['tasks'][0]['download_link']
|
86 |
+
return track
|
87 |
+
|
88 |
+
#print('Generating track ', end='')
|
89 |
+
#for i in range(20):
|
90 |
+
|
91 |
+
# r = httpx.get(track)
|
92 |
+
# if r.status_code == 200:
|
93 |
+
# return track
|
94 |
+
# time.sleep(1)
|
95 |
|
96 |
|
97 |
|