Spaces:
Runtime error
Runtime error
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
Local Setup
- Install dependencies:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run app.py
Usage
- Upload your code files (supported: .py, .java, .js, .jsx, .ts, .tsx)
- Enter your analysis questions (or use the default ones)
- 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)