SyedTahir's picture
Update README.md
ca0b39f verified
|
Raw History Blame Contribute Delete
2.99 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
license: apache-2.0
title: STHASI Code Review Assistant
emoji: πŸ’»
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.49.1

πŸ”’ STHASI Code Review Assistant

An AI-powered code review assistant that analyzes code quality, detects security vulnerabilities, and suggests improvements.

🌟 Features

Code Quality Analysis: Evaluate code structure, readability, and best practices

Security Vulnerability Detection: Identify SQL injection, XSS, authentication flaws, and more

Improvement Suggestions: Get performance optimizations and refactoring recommendations

Bug Detection: Find logic errors, edge cases, and potential issues

Multi-Language Support: Python, JavaScript, Java, C++, Go, Rust, PHP, and more

πŸš€ Technology Stack

Model: Qwen2.5-Coder-7B-Instruct (State-of-the-art code understanding)

Framework: Gradio 5.49.1

Platform: Hugging Face Spaces

πŸ“¦ Installation For Hugging Face Spaces Deployment:

Create a new Space on Hugging Face

Choose "Gradio" as the SDK

Upload the following files:

app.py

requirements.txt

README.md

Set the Space to use GPU (recommended: T4 or A10G) For Local Development:

Clone the repository

git clone cd sthasi-code-review-assistant

Install dependencies

pip install -r requirements.txt

Run the application

python app.py

🎯 Usage

Paste your code in the code editor

Select the programming language

Choose analysis type:

Full Analysis (Quality + Security + Improvements)

Security Vulnerabilities Only

Code Quality & Improvements

Bug Detection

Click "Analyze Code" and get comprehensive feedback πŸ“‹ Supported Languages

Python

JavaScript

Java

C/C++

C#

Go

Rust

PHP

Ruby

TypeScript

SQL

Bash

Kotlin

Swift

πŸ”§ Advanced Settings

Temperature: Control response creativity (0.1-1.0)

Max Tokens: Set maximum analysis length (512-4096)

πŸ“Š Analysis Types πŸ” Full Analysis

Comprehensive review covering code quality, security, and improvements

πŸ›‘οΈ Security Vulnerabilities Only

Focused security analysis with severity ratings and CVE references

✨ Code Quality & Improvements

Evaluation of code structure, performance, and best practices

πŸ› Bug Detection

Identification of syntax errors, logic errors, and edge case failures

⚠️ Important Notes

This is an AI-powered tool. Always verify critical security findings with manual review

The tool provides suggestions based on best practices and common vulnerabilities

For production systems, consult with security experts for comprehensive audits

🀝 Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

πŸ“ž Contact

Syed Tahir Hussan

LinkedIn: syedtahirhussan

GitHub: SyedTahirHussan

πŸ“„ License

This project is open source and available under the MIT License.

πŸ™ Acknowledgments

Powered by Qwen2.5-Coder-7B-Instruct

Built with Gradio

Hosted on Hugging Face Spaces Built with ❀️ by Syed Tahir Hussan

Made with ❀️ for the developer community