(
data: schemas.DescriptionModeGenerateParam, token: str = Depends(get_token)
)
| 41 | |
| 42 | @app.post("/generate/description-mode") |
| 43 | async def generate_with_song_description( |
| 44 | data: schemas.DescriptionModeGenerateParam, token: str = Depends(get_token) |
| 45 | ): |
| 46 | try: |
| 47 | resp = await generate_music(data.dict(), token) |
| 48 | return resp |
| 49 | except Exception as e: |
| 50 | raise HTTPException( |
| 51 | detail=str(e), status_code=status.HTTP_500_INTERNAL_SERVER_ERROR |
| 52 | ) |
| 53 | |
| 54 | |
| 55 | @app.get("/feed/{aid}") |
nothing calls this directly
no test coverage detected