A specialized AI study tool for computer science students, built with Gradio and GPT-4o mini.
Live demo on Hugging Face Spaces: 👉 https://huggingface.co/spaces/jonowrenn/cs-study-assistant
⚠️ The live demo requires an OpenAI API key set as a Space Secret. To run locally, clone the repo and add your own key.
- 6 expert modes, each with a tailored system prompt:
- General — friendly, concise assistant for any question
- Explain a Concept — structured explanations with intuition, mechanics, and examples
- Code Review — senior-engineer-style review: bugs, edge cases, style, complexity
- Debug Help — step-by-step root cause analysis
- ML Theory — rigorous ML/math explanations for students who know linear algebra and calculus
- Interview Prep — coding and conceptual interview coaching with complexity analysis
- Powered by GPT-4o mini for fast, high-quality responses
- Multi-turn conversation memory (last 10 turns)
- Compatible with Gradio 4.x and 5.x
git clone https://github.com/jonowrenn/GPTChatbot.git
cd GPTChatbotpip install -r requirements.txtCreate a .env file in the project root:
OPENAI_API_KEY=your_api_key_here
Get a key at platform.openai.com/api-keys.
python app.pyThen open http://localhost:7860 in your browser.
- Push the repo files to a Hugging Face Space (Gradio SDK)
- Add your
OPENAI_API_KEYunder Settings → Repository Secrets - The app launches automatically
- Python
- Gradio — UI framework
- OpenAI Python SDK — GPT-4o mini