Music download
Browse files
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:
|