Spaces:
Runtime error
Runtime error
| # 强制指定 FastAPI 版本,确保包含 MarkdownResponse | |
| fastapi==0.100.0 | |
| # 服务启动工具(与 FastAPI 0.100.0 兼容) | |
| uvicorn==0.23.2 | |
| # 模型依赖(兼容版本) | |
| transformers==4.35.2 | |
| # CPU 版本 PyTorch(避免 GPU 兼容问题,Hugging Face 免费版为 CPU 环境) | |
| torch==2.0.1+cpu; sys_platform == 'linux' | |
| # 解决 NumPy 2.x 兼容性问题 | |
| numpy==1.26.4 | |
| # 数据模型验证(与 FastAPI 0.100.0 兼容) | |
| pydantic==2.0.1 |