SmartLang is an AI-powered application that leverages advanced language models via APIs to provide seamless text translation and PDF summarization services.
-
🌍 Text Translation
- Translate text instantly between multiple languages.
- Uses Google translate API to provide contextually accurate and fluent translations.
-
📄 PDF Summarization
- Upload PDF documents and receive concise summaries of the content.
- Ideal for quickly digesting lengthy reports, articles, and research papers.
Clone the repository:
git clone https://github.com/yourusername/smartlang.gitInstall Poppler: For MacOS
brew install poppler
pdftotext -vFor Linux
sudo apt update
sudo apt install poppler-utils
pdftotext -vSetup DB:
source .env.dev
mix deps.get
mix ecto.setupgenerate static build from frontend
cd assets/frontend
npm i
npm run buildrun phx server from smartlang dir
mix phx.serverNow you can visit localhost:4000 from your browser.
Run End To End Tests (Cypress)
follow the same steps to generate static build from frontend and then run:
source .env.end_to_end_test
mix deps.get
mix ecto.setup
mix phx.server # start the phx server
npx cypress open # Now you can run cypress testsRun Elixir Tests
source .env.test
mix ecto.setup
mix test