Spaces:
Sleeping
Sleeping
increase timeout to 300s
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def generate_music(prompt, duration=10):
|
|
16 |
}
|
17 |
|
18 |
try:
|
19 |
-
response = requests.post(API_URL, headers=headers, json=payload)
|
20 |
if response.status_code != 200:
|
21 |
return None, f"Error: API returned status code {response.status_code}"
|
22 |
|
|
|
16 |
}
|
17 |
|
18 |
try:
|
19 |
+
response = requests.post(API_URL, headers=headers, json=payload, timeout=300)
|
20 |
if response.status_code != 200:
|
21 |
return None, f"Error: API returned status code {response.status_code}"
|
22 |
|