Spaces:
Sleeping
Sleeping
metadata
title: Code Complexity Predictor
emoji: π
colorFrom: blue
colorTo: yellow
sdk: docker
pinned: false
license: apache-2.0
βοΈ Code Complexity Predictor
An AI-powered web application that instantly predicts the Big-O Time Complexity of Python and Java code snippets using GraphCodeBERT.
π Features
- Intelligent Analysis: Powered by Microsoft's GraphCodeBERT fine-tuned on the CodeParrot/CodeComplex dataset.
- Premium Interface: A stunning Glassmorphism dark-mode UI with syntax highlighting and micro-animations.
- Lightning Fast: Built on a lightweight FastAPI backend for near-instant inference.
- Cloud-Ready: Completely containerized with Docker, configured for automatic deploy on Render.com.
π οΈ Tech Stack
- Frontend: HTML5, Vector CSS (Vanilla), JavaScript, PrismJS
- Backend: Python, FastAPI, Uvicorn
- AI/ML: PyTorch, HuggingFace Transformers (
GraphCodeBERT) - Deployment: Docker, Render
π» Running Locally
Install Dependencies
pip install -r requirements.txtDownload Model files Ensure you have configured
download_model.pywith your Google Drive File ID, then run:python download_model.pyStart the Server
uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reloadOpen the App Navigate to
http://localhost:8000in your web browser.
Built with β€οΈ for algorithmic analysis.