A versatile translation service offering multiple interfaces for easy integration into various workflows.
- Support for multiple interfaces including gRPC and CLI.
- Easy to set up and use with Docker support.
- Python 3.12.2 (or higher)
- Compatible with major operating systems.
- Clone the repository:
git clone https://github.com/m-abdi/argostranlsate.git
- Install the requirements:
pip install -r requirements.txt
- Set the required environment variables in the
.envfile (see.env.examplefor a template).
- Ideal for applications requiring remote procedure calls.
- To start the gRPC server:
python -m src.interfaces.grpc.server
Note: The default port for the server is 50051.
python -m src.interfaces.cli.cli 'سلام' --from-lang fa --to-lang en
docker run -e ARGOS_PACKAGES_DIR="/app/models" -e ARGOS_DEVICE_TYPE="cpu" mordad/argostranslate:cli python -m src.interfaces.cli.cli 'سلام' --from-lang fa --to-lang en
docker run -e ARGOS_PACKAGES_DIR="/app/models" -e ARGOS_DEVICE_TYPE="cpu" mordad/argostranslate:grpc