Skip to content

Conversation

@h3110Fr13nd
Copy link
Contributor

@h3110Fr13nd h3110Fr13nd commented Sep 1, 2024

This PR closes #382.

  • Changes ensures the bolna builds and installs from the latest code in the local repo instead of the remote bolna repo.
  • It also ensures the proper caching and smaller (1.14 GB) image sizes for faster and optimised builds.

Since it follows from replacing torchaudio.
It also closes #380 and closes #370

refactor: Removed unnecessary dependencies

Removed Requirements
- python-dateutil
- tiktoken
- torchaudio
- scipy
- tokenizers
- huggingface-hub
- sentence-transformers
- optimum[onnxruntime]

Major Changes in This Commit
- torchaudio to pydub
	- bolna/helpers/utils.py
		- save_audio_file_to_s3
		- resample
		- pcm_to_wav_bytes
		- wav_bytes_to_pcm
	- bolna/synthesizer/basesynthesizer
		- resample
- sklearn to np
	- bolna/memory/cache/vector_cache
		- __get_top_cosine_similarity_doc
… of remote repo

- refactored code, dependencies
- updated context folder in docker files
- optmized dockerfiles

The final bolna docker image is 1.14 GB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant