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))
|
||||
|
||||
@ -200,6 +200,8 @@ async def export_video(req: ExportRequest):
|
||||
result["srt_path"] = srt_path
|
||||
return result
|
||||
|
||||
except HTTPException:
|
||||
raise
|
||||
except ValueError as e:
|
||||
raise HTTPException(status_code=400, detail=str(e))
|
||||
except RuntimeError as e:
|
||||
|
||||
Reference in New Issue
Block a user