Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ print("Jamify model ready.")
|
|
65 |
|
66 |
gr.set_static_paths(paths=[Path.cwd().absolute()])
|
67 |
|
68 |
-
@spaces.GPU()
|
69 |
def generate_song(reference_audio, lyrics_text, duration, mode="time", bpm=120, style_prompt=None):
|
70 |
# We need to save the uploaded files to temporary paths to pass to the model
|
71 |
reference_audio = reference_audio not in ("", None) and reference_audio or None
|
|
|
65 |
|
66 |
gr.set_static_paths(paths=[Path.cwd().absolute()])
|
67 |
|
68 |
+
@spaces.GPU(duration=100)
|
69 |
def generate_song(reference_audio, lyrics_text, duration, mode="time", bpm=120, style_prompt=None):
|
70 |
# We need to save the uploaded files to temporary paths to pass to the model
|
71 |
reference_audio = reference_audio not in ("", None) and reference_audio or None
|