ai tools finished
This commit is contained in:
@ -60,6 +60,8 @@ async def generate_captions(req: CaptionRequest):
|
||||
|
||||
return PlainTextResponse(content, media_type="text/plain")
|
||||
|
||||
except HTTPException:
|
||||
raise
|
||||
except Exception as e:
|
||||
logger.error(f"Caption generation failed: {e}", exc_info=True)
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
Reference in New Issue
Block a user