Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import torch | |
| import soundfile as sf | |
| import os | |
| from transformers import AutoModel # Fixed the 'inport' typo | |
| # Load the ACE-Step 1.5 model | |
| # trust_remote_code=True is required to use your local modeling file | |
| model = AutoModel.from_pretrained( | |
| "ACE-Step/acestep-v15-turbo-continuous", | |
| trust_remote_code=True, | |
| torch_dtype=torch.float32 | |
| ) | |
| # ... (the rest of your generate_music function and Gradio code) | |