vijayvizag's picture
initial code commit
be94910
|
raw
history blame
1.47 kB

Code Analyzer

Streamlit App

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

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the Streamlit app:
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)