This paper explores DiffRhythm, a pre-trained model for music generation that incorporates principles from neuroscience and advanced machine learning techniques.
0
stars
13
commits
Python
primary language
May 7, 2025
updated
A modern web interface for ResonateAI's DiffRhythm music generation model, built with Next.js.
This repository contains a full-stack application for interacting with the DiffRhythm music generation model. The project consists of two main components:
The interface allows users to generate full-length songs by simply providing lyrics and style descriptions, leveraging DiffRhythm's powerful diffusion-based music generation capabilities.
/
├── backend/ # Python backend
│ ├── config/ # Configuration files
│ ├── dataset/ # Dataset handling
│ ├── g2p/ # Grapheme-to-phoneme conversion
│ ├── infer/ # Inference code
│ ├── model/ # Model architecture
│ ├── pretrained/ # Pre-trained model weights
│ ├── scripts/ # Utility scripts
│ ├── src/ # Source code
│ ├── temp_uploads/ # Temporary file storage
│ ├── thirdparty/ # Third-party dependencies
│ ├── train/ # Training code
│ ├── app.py # Flask application entry point
│ ├── requirements.txt # Python dependencies
│ └── start_backend.sh # Backend startup script
│
├── frontend/ # Next.js frontend
│ ├── public/ # Static assets
│ ├── src/ # React components & pages
│ ├── components.json # Component definitions
│ ├── next.config.ts # Next.js configuration
│ ├── package.json # Node dependencies
│ └── tsconfig.json # TypeScript configuration
│
└── LICENSE # Project license
Frontend:
Backend:
Clone the repository:
git clone https://github.com/your-username/resonateai-ui.git
cd resonateai-ui
Set up the backend:
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Set up the frontend:
cd frontend
npm install
Environment configuration:
.env.local file in the frontend directory with:
NEXT_PUBLIC_API_URL=http://localhost:5000
Start the backend:
cd backend
bash start_backend.sh
Start the frontend:
cd frontend
npm run dev
Access the application:
Open your browser and navigate to http://localhost:3000
Generate a new song:
Manage songs:
Export your music:
Build the Next.js application:
cd frontend
npm run build
Deploy using Vercel, Netlify, or any static hosting service:
npm run start # For local production testing
gunicorn --bind 0.0.0.0:5000 app:app
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
13 commits
Python
71.4%
TypeScript
22.3%
CSS
3.6%
JavaScript
1.6%
This paper explores DiffRhythm, a pre-trained model for music generation that incorporates principles from neuroscience and advanced machine learning techniques.
0
stars
13
commits
Python
primary language
May 7, 2025
updated
A modern web interface for ResonateAI's DiffRhythm music generation model, built with Next.js.
This repository contains a full-stack application for interacting with the DiffRhythm music generation model. The project consists of two main components:
The interface allows users to generate full-length songs by simply providing lyrics and style descriptions, leveraging DiffRhythm's powerful diffusion-based music generation capabilities.
/
├── backend/ # Python backend
│ ├── config/ # Configuration files
│ ├── dataset/ # Dataset handling
│ ├── g2p/ # Grapheme-to-phoneme conversion
│ ├── infer/ # Inference code
│ ├── model/ # Model architecture
│ ├── pretrained/ # Pre-trained model weights
│ ├── scripts/ # Utility scripts
│ ├── src/ # Source code
│ ├── temp_uploads/ # Temporary file storage
│ ├── thirdparty/ # Third-party dependencies
│ ├── train/ # Training code
│ ├── app.py # Flask application entry point
│ ├── requirements.txt # Python dependencies
│ └── start_backend.sh # Backend startup script
│
├── frontend/ # Next.js frontend
│ ├── public/ # Static assets
│ ├── src/ # React components & pages
│ ├── components.json # Component definitions
│ ├── next.config.ts # Next.js configuration
│ ├── package.json # Node dependencies
│ └── tsconfig.json # TypeScript configuration
│
└── LICENSE # Project license
Frontend:
Backend:
Clone the repository:
git clone https://github.com/your-username/resonateai-ui.git
cd resonateai-ui
Set up the backend:
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Set up the frontend:
cd frontend
npm install
Environment configuration:
.env.local file in the frontend directory with:
NEXT_PUBLIC_API_URL=http://localhost:5000
Start the backend:
cd backend
bash start_backend.sh
Start the frontend:
cd frontend
npm run dev
Access the application:
Open your browser and navigate to http://localhost:3000
Generate a new song:
Manage songs:
Export your music:
Build the Next.js application:
cd frontend
npm run build
Deploy using Vercel, Netlify, or any static hosting service:
npm run start # For local production testing
gunicorn --bind 0.0.0.0:5000 app:app
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
13 commits
Python
71.4%
TypeScript
22.3%
CSS
3.6%
JavaScript
1.6%