New translate nllb and ASR model - WIP #119
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes across multiple files, focusing on improving code readability, adding dependencies, and refactoring for better organization. The most significant updates include adding
ffmpegto the Dockerfile, reordering imports for consistency, reformatting code blocks for readability, and restructuring theWhatsAppServiceclass for improved clarity.Dependency Updates:
Dockerfile.heroku: Addedffmpegto the list of installed packages to enable audio processing capabilities.Code Organization and Readability:
app/api.py: Reordered imports to maintain alphabetical consistency and reformatted multiline statements for improved readability. [1] [2]app/api.py: Reformatted logging and response handling inLargeUploadMiddlewarefor better readability and consistency.Refactoring in
WhatsAppService:app/inference_services/whatsapp_service.py: Reorganized imports to group standard libraries, third-party libraries, and local modules logically.app/inference_services/whatsapp_service.py: Refactored all method definitions to use consistent multiline formatting for parameters, improving readability and maintainability. [1] [2] [3] and subsequent methods)