Paste your code and let an AI reviewer give you a light-hearted roast plus a short improvement tip.
Built for Project CodeGen using Hugging Face Inference โ no API keys required!
https://huggingface.co/spaces/Abhinavtiwari/roast_my_code
- You paste any snippet of code.
- A Hugging Face model (
microsoft/phi-2) generates a short roast and a suggestion. - Your code is syntax-highlighted and displayed below.
- Python 3.10+
- Gradio UI
- Transformers + microsoft/phi-2 (text-generation)
- Pygments for code highlighting
git clone https://github.com/<yourusername>/roast-my-code.git
cd roast-my-code
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txt
python app.py