vijayvizag's picture
initial code commit
be94910
|
raw
history blame
1.47 kB
# Code Analyzer
[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://huggingface.co/spaces/YOUR_USERNAME/code-analyzer)
This tool analyzes code projects and generates descriptive summaries along with answers to specific questions about the codebase.
## Features
- Analyzes Python, Java, and React code files
- Detects technology stack and dependencies
- Measures code complexity metrics
- Generates project summaries using transformer models
- Interactive Streamlit interface with visualizations
- Provides targeted answers to specific questions about the codebase
## Demo
You can try the live demo on [Hugging Face Spaces](https://huggingface.co/spaces/YOUR_USERNAME/code-analyzer)
## Local Setup
1. Install dependencies:
```bash
pip install -r requirements.txt
```
2. Run the Streamlit app:
```bash
streamlit run app.py
```
## Usage
1. Upload your code files (supported: .py, .java, .js, .jsx, .ts, .tsx)
2. Enter your analysis questions (or use the default ones)
3. Click "Analyze Code" to get insights about your project
## Analysis Capabilities
- Technology stack detection (languages, frameworks, dependencies)
- Code metrics (lines of code, class/function count, complexity)
- Project objective identification from documentation
- Customizable question-answering system
- Interactive visualizations of code metrics
## Requirements
- Python 3.8+
- 4GB+ RAM
- CUDA-capable GPU (optional, for faster processing)