Spaces:
Sleeping
Sleeping
use musicgen-large
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import tempfile
|
|
5 |
import os
|
6 |
|
7 |
def generate_music(prompt, duration=10):
|
8 |
-
API_URL = "https://api-inference.huggingface.co/models/facebook/musicgen-
|
9 |
headers = {"Authorization": f"Bearer {os.getenv('HF_API_KEY')}"}
|
10 |
|
11 |
payload = {
|
|
|
5 |
import os
|
6 |
|
7 |
def generate_music(prompt, duration=10):
|
8 |
+
API_URL = "https://api-inference.huggingface.co/models/facebook/musicgen-large"
|
9 |
headers = {"Authorization": f"Bearer {os.getenv('HF_API_KEY')}"}
|
10 |
|
11 |
payload = {
|