Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -191,7 +191,7 @@ def generate_voice(script: str, tts_model_name: str = "tts_models/en/ljspeech/ta
|
|
191 |
# ---------------------------------------------------------------------
|
192 |
# Music Generation Function
|
193 |
# ---------------------------------------------------------------------
|
194 |
-
@spaces.GPU(duration=
|
195 |
def generate_music(prompt: str, audio_length: int):
|
196 |
"""
|
197 |
Generates music from the 'facebook/musicgen-large' model based on the prompt.
|
|
|
191 |
# ---------------------------------------------------------------------
|
192 |
# Music Generation Function
|
193 |
# ---------------------------------------------------------------------
|
194 |
+
@spaces.GPU(duration=200)
|
195 |
def generate_music(prompt: str, audio_length: int):
|
196 |
"""
|
197 |
Generates music from the 'facebook/musicgen-large' model based on the prompt.
|