File size: 1,430 Bytes
0bb19de
 
 
 
 
 
8864ec7
0bb19de
 
 
 
7819eb3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8864ec7
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
---
title: Code Review Assistant V3
emoji: πŸ”
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.9.0
app_file: app.py
pinned: false
---

# Code Review Assistant V3

This Space provides an automated code review system powered by Gemma-2b-it. It analyzes code and provides suggestions for improvements in multiple categories including issues, improvements, best practices, and security considerations.

## Features

- πŸ” Automated code review for multiple programming languages
- πŸ’‘ Detailed suggestions for code improvements
- πŸ”’ Security considerations and best practices
- πŸ“Š Review history and performance metrics
- ⚑ GPU-accelerated inference
- 🎨 Clean and intuitive interface

## Supported Languages

- Python
- JavaScript
- Java
- C++
- TypeScript
- Go
- Rust

## Usage

1. Select the programming language from the dropdown
2. Paste your code in the input box
3. Click "Submit for Review"
4. View the detailed review suggestions
5. Check the History tab to see previous reviews
6. Monitor performance in the Metrics tab

## Technical Details

- Model: google/gemma-2b-it
- Framework: Gradio
- Inference: GPU-accelerated with PyTorch
- Persistent storage for review history and metrics

## Environment Setup

The Space requires the following environment variables:
- `HUGGING_FACE_TOKEN`: Your Hugging Face token for model access
- `MODEL_NAME`: Defaults to "google/gemma-2b-it"

## License

MIT License