Translate English to different laguages Using LLM models (Groq API / Ollama).
We can interact with model using NodeJs Web-Dashboard.
This needs to install/setup on a Server that runs LLM models locally or use Groq API to invoke the input coming from User (Web Dashboard).
git clone https://github.com/naseemap47/Language-Translator
cd Language-Translator/
conda create -n server python=3.10 -y
conda activate server
pip3 install -r requirements.txt
LANGCHAIN_API_KEY="{LANGCHAIN_API_KEY}"
LANGSMITH_TRACING=true
LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
LANGSMITH_API_KEY="{LANGSMITH_API_KEY}"
LANGSMITH_PROJECT="{LANGSMITH_PROJECT}"
GROQ_API_KEY="{GROQ_API_KEY}"
python3 server.py
git clone https://github.com/naseemap47/Language-Translator -b ollama
cd Language-Translator/
conda create -n server python=3.10 -y
conda activate server
pip3 install -r requirements.txt
Download Ollama on the server
Checkout: https://ollama.com/download
For Linux:
curl -fsSL https://ollama.com/install.sh | sh
Download model which is required for you.
Checkout: https://ollama.com/models
For example, I am choosing deepseek-r1 model.
To download deepseek-r1 model:
ollama run deepseek-r1
LANGCHAIN_API_KEY="{LANGCHAIN_API_KEY}"
LANGSMITH_TRACING=true
LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
LANGSMITH_API_KEY="{LANGSMITH_API_KEY}"
LANGSMITH_PROJECT="{LANGSMITH_PROJECT}"
python3 server.py
Follow NodeJs Docs: https://nodejs.org/en/download Install NodeJS 18v: For Ubuntu follow - https://joshtronic.com/2022/04/24/how-to-install-nodejs-18-on-ubuntu-2004-lts/
git clone https://github.com/naseemap47/Language-Translator -b langchain/ui
cd Language-Translator/ui
npm install
npm start