A newer version of the Gradio SDK is available: 6.19.0
metadata
title: ai-interview-coach
emoji: π
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 6.18.0
app_file: app.py
pinned: false
python_version: '3.10'
license: mit
short_description: AI Interview Coach
tags:
- track:backyard
- achievement:offbrand
- achievement:fieldnotes
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/686f49a3a31e9a517952dd0c/HfuMUE233jLKwNgjefSmy.png
ποΈ Project Showcases
- Live Video Demonstration: Watch on YouTube
- Official Social Media Pitch (LinkedIn Post): View on LinkedIn
- Official Blog Post on the BuildSmall Organisation: View my Blog Post
ποΈ AI Interview Coach β Version Alpha
An AI-powered interview preparation tool built with Gradio 6 and Qwen 2.5 7B via the HuggingFace Inference API.
π Built for the Gradio Γ Hugging Face Build Small Hackathon (June 2026).
Features
- π Two-stage job description validation β blocks spam and prompt injection
- ποΈ 3 interview modes β Quick (3Q), Standard (5Q), Deep Dive (7Q)
- π€ Adaptive questions β tailored to industry, role level, and detected keywords
- π Keyword-aware scoring β answers scored against job-specific expected terms
- π Keyword coverage badges β see exactly which terms you hit and missed
- π‘ AI-generated Prep Sheet β works for ANY industry (not just tech)
- π Timestamped PDF report β downloadable session summary
- π¨ Premium dark UI β glassmorphism, animated blobs, Inter font
Quick Start (Local)
1. Clone and set up environment
cd HF_Hackathon
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # Mac/Linux
pip install -r requirements.txt
2. Set your HuggingFace token
# Copy the example and fill in your token
copy .env.example .env
# Edit .env and replace hf_PASTE_YOUR_TOKEN_HERE with your actual token
Get a free token at: https://huggingface.co/settings/tokens
Required permission: Inference (read)
3. Run
python interview_coach.py
HuggingFace Spaces Deployment
- Push this repo to your HF Space (Gradio SDK)
- Go to Settings β Secrets and add
HF_TOKEN= your token - The app starts automatically β no other changes needed
Architecture
interview_coach.py β Gradio UI (pure layout + event wiring)
engine.py β Orchestration (LLM client, session, PDF)
config.py β All constants, CSS design system
agents/
validator.py β 3-stage JD validation + profile extraction
question_gen.py β Adaptive question generation
scorer.py β Keyword-aware answer scoring (Agenda #4)
Model
- Model:
Qwen/Qwen2.5-7B-Instruct - Parameters: 7B (within HF Hackathon β€32B limit)
- Inference: HuggingFace Serverless Inference API (free tier)
- Local fallback: Ollama (
mistral:7b) if no HF token is set
Scoring System
| Score | Meaning |
|---|---|
| 8β10 | Excellent β strong STAR structure + good keyword coverage |
| 5β7 | Good β missing key terms or depth |
| 1β4 | Needs work β expand and use role-specific language |
| NIL | Irrelevant response |
Keyword Coverage Rule: < 40% of expected keywords β score capped at 5/10.