Spaces:
Sleeping
Sleeping
futurespyhi
commited on
Commit
·
be99110
1
Parent(s):
74aed6e
reduce time for GPU use
Browse files
app.py
CHANGED
|
@@ -285,7 +285,7 @@ def validate_file_structure():
|
|
| 285 |
print("✅ All required files found")
|
| 286 |
return True
|
| 287 |
|
| 288 |
-
@spaces.GPU(duration=
|
| 289 |
def generate_music_spaces(lyrics: str, genre: str, mood: str, progress=gr.Progress()) -> str:
|
| 290 |
"""
|
| 291 |
Generate music using YuE model with high-performance Spaces configuration
|
|
|
|
| 285 |
print("✅ All required files found")
|
| 286 |
return True
|
| 287 |
|
| 288 |
+
@spaces.GPU(duration=300) # Increase GPU timeout to 15 minutes
|
| 289 |
def generate_music_spaces(lyrics: str, genre: str, mood: str, progress=gr.Progress()) -> str:
|
| 290 |
"""
|
| 291 |
Generate music using YuE model with high-performance Spaces configuration
|