How sumittomar99/virtual-interview-hub works
Purpose and Entry Point
Virtual Interview Hub is a Python-based interactive HR interview simulator. It presents interview scenarios, captures candidate responses, and is intended to provide AI-assisted interview practice and feedback.
• Application entry point: app.py
• Interview simulation domain logic: hr_simulation.py
• Candidate-response handling: candidate_input.py
Application Composition
The repository is a compact application rather than a multi-service system. app.py likely assembles the UI, invokes the interview workflow, and coordinates presentation of questions, inputs, and results.
• Main orchestration: app.py
• Reusable UI/content elements: components.py
• Styling asset: style.css
Interview Simulation Layer
hr_simulation.py is the core domain boundary for simulated HR interviews. It should own interview-stage behavior such as selecting or presenting questions, progressing through scenarios, and producing evaluation-oriented outputs.
• Simulation engine: hr_simulation.py
• Application integration point: app.py
Candidate Interaction Boundary
candidate_input.py represents the boundary between the user’s response and simulation logic. It likely handles collection, normalization, or submission of candidate answers before they are passed into interview evaluation or feedback stages.
Primary control flow:
1. UI initiates an interview session in app.py.
2. Simulation logic in hr_simulation.py supplies or advances interview content.
3. Candidate responses are collected through candidate_input.py.
4. Results return to app.py for display through shared components.
• Response capture/processing: candidate_input.py
• Workflow coordination: app.py
Presentation and Shared Components
components.py centralizes reusable visual or interaction units, keeping app.py focused on application flow. style.css supplies the visual styling boundary, while assets/ holds static resources used by the interface.
• Reusable components: components.py
• Static assets: assets
• UI styling: style.css
AI and External-Service Boundary
The stated product direction includes AI-powered speech interaction and performance feedback, with OpenAI Whisper referenced by the README. No explicit service client, model configuration, or infrastructure files appear in the supplied tree, so any model invocation is expected to be embedded in application or simulation code rather than isolated as a separate integration module.
Likely integration ownership paths:
• Application-level integration: app.py
• Interview/feedback integration: hr_simulation.py
Architectural Constraints
The codebase has no visible backend service layer, database schema, deployment manifests, or API package. Session state, interview history, persistence, and external AI calls therefore likely remain local to the Python application process unless implemented internally in the listed modules.
• Runtime surface: app.py
• Domain workflow: hr_simulation.py
• User-input boundary: candidate_input.py
Main entry points: app.py Application entry · hr_simulation.py HR simulation engine · candidate_input.py Candidate response handling · style.css UI styles
Components 7
Presentation
- Application entry · Assembles the UI and coordinates the interview session.
app.py - Shared components
components.py - UI styles
style.css - Static assets
assets
Interview Workflow
- HR simulation engine · Owns interview progression and evaluation-oriented outputs.
hr_simulation.py - Candidate response handling · Collects and normalizes candidate answers.
candidate_input.py
Other components
- AI speech and feedback · Potentially invoked from application or simulation code.
Connections 9
- Application entry → Shared components: renders with
- UI styles → Application entry: styles UI
- Static assets → Application entry: supplies resources
- Application entry → HR simulation engine: starts and advances session
- HR simulation engine → Application entry: questions and results
- Application entry → Candidate response handling: collects response
- Candidate response handling → HR simulation engine: submits answer
- Application entry → AI speech and feedback: may invoke
- HR simulation engine → AI speech and feedback: may request feedback