Group12-AIInterview/README.md
2026-01-07 13:25:06 +08:00

88 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AI帮你面试
一个基于Flask的AI面试辅助系统可以帮助用户模拟面试流程并提供AI分析反馈。
## 功能特性
- 模拟完整的面试流程
- AI回答分析功能
- 面试结果评分
- RESTful API接口
- API密钥验证机制
## 技术栈
- **后端框架**: Flask 2.3+
- **前端技术**: HTML, CSS, JavaScript
- **环境配置**: python-dotenv
## 快速开始
### 安装依赖
```bash
pip install -r requirements.txt
```
### 配置环境变量
复制并修改环境配置文件:
```bash
# 根据实际情况修改.env文件
```
### 启动应用
```bash
python app.py
```
应用将在 http://127.0.0.1:5000 启动。
## API接口
### POST /analyze_answer
分析面试回答内容
**请求头**:
- X-API-Key: [API密钥]
**请求体**:
```json
{
"answer": "您的回答内容",
"question_id": 1
}
```
### GET /get_results
获取面试结果
**请求头**:
- X-API-Key: [API密钥]
## 项目结构
```
AI帮你面试/
├── app.py # 主应用程序
├── .env # 环境配置文件
├── requirements.txt # 项目依赖
├── templates/ # HTML模板
│ ├── index.html
│ └── interview.html
└── static/ # 静态资源
├── styles.css
└── script.js
```
## 开发说明
- 开发环境下使用 `FLASK_DEBUG=True` 开启调试模式
- 生产环境建议使用专业的WSGI服务器如Gunicorn
- 请妥善保管API密钥避免泄露
## 许可证
MIT License