LevelUp
"Level up your study routine"
The problem LevelUp solves
Traditional studying is passive, overwhelming, and lonely. Students waste hours manually reading dense textbooks, creating flashcards, and guessing what will be on an exam.
What People Can Use It For
-
Instant Gamified Studying: Upload any study material (text or images) and instantly get custom mock tests and active-recall flashcard decks.
-
Tracking Subject Mastery: View real-time readiness scores, gain XP, and level up as you get quiz answers right.
-
Auto-Generated Study Lobbies: The app tracks your weakest quiz topics and automatically recommends custom virtual study squads (like a "Thermistor Study Squad") to bridge the gap.

Challenges we ran into
Challenges We Ran Into & How We Overcame Them
Building LevelUp :
- The Local OS Package Trap (psycopg2 Compilation Failure)
The Hurdle: When setting up our backend environment, installing the standard psycopg2 package completely crashed on Windows machines. The package tried to compile C++ source code from scratch, which failed because local laptops lacked the heavy build tools and compilers.
The Fix: We bypassed the compilation phase entirely by switching our virtual environment over to psycopg2-binary. This forced Python to download a pre-compiled Windows wheel, instantly resolving the environment roadblock and keeping our dependency tree lightweight.
- Cloud File Service Restriction vs. Our Local TrOCR/OCR Fallback System
The Hurdle: When testing our core feature—uploading raw document files—the backend returned a 401 Unauthenticated error to the FileService. CreateFile method. We discovered that Google's latest Generative AI SDK strictly blocks standard free-tier API keys from accessing their cloud file storage containers directly, requiring complex enterprise OAuth 2.0 service credentials instead.
The Overcome: Instead of letting the app crash, we built a hybrid fallback architecture using a localized OCR and TrOCR pipeline powered by Hugging Face Transformers and PyTorch (ocr_service.py). When Google's cloud file service throws a 401 block, our backend catches the error and automatically routes the document to a local Hugging Face Vision Transformer model (VisionEncoderDecoderModel). This local engine extracts the text line-by-line and feeds the raw string payload straight into standard text endpoints—completely bypassing cloud container restrictions while ensuring stable, offline-ready document parsing.