Skip to content

Abhinavtiwari-doit/Roast_my_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– RoastMyCode

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!


๐ŸŒ Live Demo

https://huggingface.co/spaces/Abhinavtiwari/roast_my_code


๐Ÿง  How It Works

  1. You paste any snippet of code.
  2. A Hugging Face model (microsoft/phi-2) generates a short roast and a suggestion.
  3. Your code is syntax-highlighted and displayed below.

๐Ÿ› ๏ธ Tech Stack

  • Python 3.10+
  • Gradio UI
  • Transformers + microsoft/phi-2 (text-generation)
  • Pygments for code highlighting

โš™๏ธ Run Locally

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages