fffiloni commited on
Commit
e3fb84a
โ€ข
1 Parent(s): 791c7e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
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
- print('Generating track ', end='')
87
- for i in range(20):
88
- track=rdata['data']['tasks'][0]['download_link']
89
- r = httpx.get(track)
90
- if r.status_code == 200:
91
- return track
92
- time.sleep(1)
 
 
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