Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def get_music(pat, prompt, track_duration, gen_intensity, gen_mode):
|
|
85 |
headers = {
|
86 |
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7; rv:93.0) Gecko/20100101 Firefox/93.0'}
|
87 |
|
88 |
-
retries =
|
89 |
delay = 5 # in seconds
|
90 |
while retries > 0:
|
91 |
response = requests.get(track, headers=headers)
|
|
|
85 |
headers = {
|
86 |
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7; rv:93.0) Gecko/20100101 Firefox/93.0'}
|
87 |
|
88 |
+
retries = 3
|
89 |
delay = 5 # in seconds
|
90 |
while retries > 0:
|
91 |
response = requests.get(track, headers=headers)
|