Disclaimers
The goal of this repository is to show the capabilities of WatsonX ML using the granite-20b-multilingual
to demonstrate how to translate multiple languages.
This repository is based on Mateusz Szewczyk's repository.
Requirements
- Create a Watson Machine Learning (WML) Service instance (a free plan is offered and information about how to create the instance can be found here).
- Install
ibm-watsonx-ai
dependecies:
$ pip install "ibm-watsonx-ai"
- Edit
example.env.py
file with your IBM Cloud API Key, and watsonx Project ID. - Rename the file
example.env.py
toenv.py
. - Run the script:
$ python3 main.py