--- 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