Convert code between programming languages or improve its readability β instantly, intelligently.
Powered by Google Gemini + LangChain, wrapped in a simple Streamlit UI.
π Live Demo: https://code-modernization.onrender.com
Note: This was deployed on Render (Free Tier). So, it takes 40 sec to load
- π Translate code across multiple languages
- π§Ό Improve code readability and structure
- π€ AI-powered with Gemini 2.0 Flash
- π§ͺ Supports: Python, C++, JavaScript, Go, Rust, and more
git clone https://github.com/your-username/code-modernization.git
cd code-modernization
pip install -r requirements.txt
Create a .env
file with your Google API Key:
GOOGLE_API_KEY=your_key_here
streamlit run app.py
- LLM: Gemini 2.0 Flash (via LangChain)
- Classification: Determines if input is code or text
- Conversion Mode: Translates between selected languages
- Enhancement Mode: If input/output language is the same, code is enhanced for clarity
- Streamlit β UI Framework
- LangChain β Prompt pipelines
- Google Generative AI β LLM backbone
- Render β Free-tier deployment
app.py
β Main application logic and UIrequirements.txt
β Python dependencies
Open an issue or submit a PR β contributions welcome!