Spaces:
Sleeping
Sleeping
metadata
title: Code Review Assistant
emoji: 🤖
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
Code Review Assistant
This is a FastAPI application that provides automated code reviews using the Gemma model. It's deployed on Hugging Face Spaces.
Features
- Automated code review using Gemma-2b-it model
- Support for multiple programming languages
- Real-time feedback
- Performance metrics tracking
- Review history
- Code quality analysis
- Best practices recommendations
- Security checks
- Performance optimization suggestions
Technology Stack
- FastAPI
- Hugging Face Transformers
- Docker
- PostgreSQL
- Prometheus
Environment Variables
The following environment variables need to be set in your Hugging Face Space:
HUGGING_FACE_TOKEN
: Your Hugging Face API tokenMODEL_NAME
: google/gemma-2-2b-itDEBUG
: falseLOG_LEVEL
: INFOPORT
: 7860
Usage
- Select your programming language
- Paste your code
- Click "Submit for Review"
- Get instant feedback on your code
API Documentation
Access the API documentation at:
https://huggingface.co/spaces/[YOUR-USERNAME]/code-review-assistant/docs
Deployment Instructions
- Go to Hugging Face Spaces
- Click "New Space"
- Choose:
- Owner: Your account
- Space name: code-review-assistant
- License: Choose appropriate license
- SDK: Docker
- Upload these files:
- All project files
- Rename
Dockerfile.huggingface
toDockerfile
- Set the environment variables in Space Settings
- Deploy!