Spaces:
Sleeping
Sleeping
File size: 1,562 Bytes
21ba4fb ca1c07d 21ba4fb 087ce88 9f46175 087ce88 21ba4fb ca1c07d 9f46175 087ce88 ca1c07d 21ba4fb ca1c07d 9f46175 ca1c07d 9f46175 087ce88 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
---
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 token
- `MODEL_NAME`: google/gemma-2-2b-it
- `DEBUG`: false
- `LOG_LEVEL`: INFO
- `PORT`: 7860
## Usage
1. Select your programming language
2. Paste your code
3. Click "Submit for Review"
4. 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
1. Go to [Hugging Face Spaces](https://huggingface.co/spaces)
2. Click "New Space"
3. Choose:
- Owner: Your account
- Space name: code-review-assistant
- License: Choose appropriate license
- SDK: Docker
4. Upload these files:
- All project files
- Rename `Dockerfile.huggingface` to `Dockerfile`
5. Set the environment variables in Space Settings
6. Deploy!
|