Coder19/interview_system
0
AI Interview Bot - Backend
A FastAPI-based backend for an AI-powered interview bot with real-time WebSocket communication, speech-to-text, and AI-powered question generation.
Features
- Real-time interview simulation using WebSockets
- Speech-to-text conversion
- AI-powered question generation
- Resume parsing and analysis
- Interview feedback and evaluation
Deployment on Hugging Face Spaces
Prerequisites
- A Hugging Face account
- Docker installed locally (for testing)
- Git installed
Deployment Steps
- Prepare your repository
- Make sure all the required files are committed to your repository
- Ensure you have the following files in your root directory:
Dockerfileapp.pyrequirements.txt.env(for local development, do not commit sensitive data)
- Create a new Space on Hugging Face
- Go to Hugging Face Spaces
- Click "Create new Space"
- Select "Docker" as the SDK
- Choose a name and visibility (public/private)
- Click "Create Space"
- Configure the Space
- In your Space settings, go to "Files and versions"
- Upload all your project files or connect your GitHub repository
- Set the following environment variables in the "Variables and secrets" section:
OPENAI_API_KEY(required for AI functionality)- Any other environment variables your app needs
- Configure Hardware
- In the "Settings" tab, under "Hardware", select a GPU if your application requires it
- For this application, a CPU Basic instance should be sufficient for basic functionality
- Deploy
- Hugging Face will automatically build and deploy your application
- Monitor the build logs in the "Logs" tab
- Once deployed, your application will be available at:
https://huggingface.co/spaces/<your-username>/<your-space-name>Local Development
- Clone the repository
- Create a virtual environment and activate it
- Install dependencies:
pip install -r requirements.txt
