Spaces:
Build error
Build error
artificialguybr
commited on
Commit
•
c9a53ea
1
Parent(s):
bc16e3f
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(
|
|
16 |
|
17 |
logging.info("Carregando o modelo pré-treinado.")
|
18 |
model = MusicGen.get_pretrained('nateraw/musicgen-songstarter-v0.2')
|
19 |
-
model.set_generation_params(duration=
|
20 |
|
21 |
@spaces.GPU(duration=120)
|
22 |
def generate_music(description, melody_audio):
|
|
|
16 |
|
17 |
logging.info("Carregando o modelo pré-treinado.")
|
18 |
model = MusicGen.get_pretrained('nateraw/musicgen-songstarter-v0.2')
|
19 |
+
model.set_generation_params(duration=30)
|
20 |
|
21 |
@spaces.GPU(duration=120)
|
22 |
def generate_music(description, melody_audio):
|