Khaled21 commited on
Commit
892c4bd
·
1 Parent(s): c0cb2dc

Music download

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def main():
29
  # Generate and play music based on user input
30
  if user_text:
31
  # Generate music with the synthesizer
32
- music = synthesizer(user_text, forward_params={"do_sample": True})
33
 
34
  # Create a temporary file to store the generated audio
35
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp:
 
29
  # Generate and play music based on user input
30
  if user_text:
31
  # Generate music with the synthesizer
32
+ music = synthesizer(user_text, forward_params={"do_sample": True, "max_new_tokens": 500})
33
 
34
  # Create a temporary file to store the generated audio
35
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp: