Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import torch
|
|
| 4 |
import soundfile as sf
|
| 5 |
|
| 6 |
# Load your pre-trained text-to-music model (example: using a music generation model)
|
| 7 |
-
model = pipeline("text-to-music", model="facebook/
|
| 8 |
|
| 9 |
# Function to process text and generate music
|
| 10 |
def generate_music(text_input):
|
|
|
|
| 4 |
import soundfile as sf
|
| 5 |
|
| 6 |
# Load your pre-trained text-to-music model (example: using a music generation model)
|
| 7 |
+
model = pipeline("text-to-music", model="facebook/musicgen-small")
|
| 8 |
|
| 9 |
# Function to process text and generate music
|
| 10 |
def generate_music(text_input):
|