File size: 1,519 Bytes
c923398
fe19106
 
 
09bf959
fe19106
0f4f45b
fe19106
c923398
09bf959
c923398
 
fe19106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0f4f45b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: Songlab AI
emoji: 🎡
colorFrom: purple
colorTo: indigo
sdk: gradio
sdk_version: 6.0.0
app_file: app_gradio.py
pinned: false
license: unknown
---

# SongLab AI - Music Generation Platform

Professional music generation platform with WordPress integration for authentication and credits.

## Features

- 🎡 Unlimited music generation (no limits!)
- 🎀 Vocals and lyrics support
- 🎚️ Professional audio effects
- πŸ’³ Credit-based download system
- πŸ” WordPress SSO authentication
- ⚑ Gradio-powered modern UI

## Setup

### Environment Variables

Required environment variables for deployment:

```bash
LYRICS_API_URL=<Your lyrics generation API endpoint>
BEARER_TOKEN=<Your API bearer token>
```

### WordPress Integration

The app expects JWT token authentication via URL parameters:

```
https://your-space.hf.space?jwt_token=<TOKEN>&user_id=<USER_ID>
```

WordPress should send these parameters when embedding the Space.

## Local Development

```bash
pip install -r requirements.txt
python app_gradio.py
```

## WordPress Plugin

A companion WordPress plugin is available to embed this Space seamlessly with automatic authentication.

Install the `songlab-ai-embed` plugin and use the shortcode:

```
[songlab_ai_app]
```

## Credits System

- **Generation**: Unlimited and free for all users
- **Downloads**:
  - Tier 1: 10-second downloads (requires 1 Tier 1 credit)
  - Tier 2: 20-second downloads (requires 1 Tier 2 credit)

Credits are managed via WordPress and deducted upon download.