Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ api = FastAPI(title="AI Background Music Generator")
|
|
| 13 |
def health():
|
| 14 |
return {"status": "running"}
|
| 15 |
|
| 16 |
-
@
|
| 17 |
async def api_generate(prompt: str, duration: int = 10):
|
| 18 |
file_path = generate_music(prompt, duration)
|
| 19 |
|
|
|
|
| 13 |
def health():
|
| 14 |
return {"status": "running"}
|
| 15 |
|
| 16 |
+
@api.post("/generate")
|
| 17 |
async def api_generate(prompt: str, duration: int = 10):
|
| 18 |
file_path = generate_music(prompt, duration)
|
| 19 |
|