Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def generate_music(theme: str) -> str:
|
|
| 18 |
theme: The theme or mood of the music (e.g., 'moody jazz on a rainy night').
|
| 19 |
"""
|
| 20 |
response = requests.post(
|
| 21 |
-
"https://huggingface.co/
|
| 22 |
json={"prompt": theme}
|
| 23 |
)
|
| 24 |
if response.status_code == 200:
|
|
|
|
| 18 |
theme: The theme or mood of the music (e.g., 'moody jazz on a rainy night').
|
| 19 |
"""
|
| 20 |
response = requests.post(
|
| 21 |
+
"https://huggingface.co/facebook/musicgen-large",
|
| 22 |
json={"prompt": theme}
|
| 23 |
)
|
| 24 |
if response.status_code == 200:
|