Skip to content

Commit

Permalink
fix to font problem related to changing requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen G. Pope authored and Stephen G. Pope committed Jan 31, 2025
1 parent f37975d commit 229bcb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ requests
ffmpeg-python
openai-whisper
gunicorn
APScheduler
srt
numpy
torch
google-auth
google-auth-oauthlib
google-auth-httplib2
google-api-python-client
google-cloud-storage
psutil
boto3
Pillow
Pillow
matplotlib
2 changes: 1 addition & 1 deletion routes/v1/video/caption_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def caption_video_v1(job_id, data):
# Check if this is a font-related error by checking for 'available_fonts' key
if 'available_fonts' in output:
# Font error scenario
return {"error": output['error'], "available_fonts": output['available_fonts']}, "/v1/caption-video", 400
return {"error": output['error'], "available_fonts": output['available_fonts']}, "/v1/video/caption", 400
else:
# Non-font error scenario, do not return available_fonts
return {"error": output['error']}, "/v1/video/caption", 400
Expand Down

0 comments on commit 229bcb9

Please sign in to comment.