Files
yield-smart-app/README.md
zhenghu efa844d32f fix: 统一服务端口为 8000,固定 streamlit 版本并同步依赖锁定
- 将 Dockerfile/HealthCheck/CMD 中的服务端口从 8001 统一改为 8000
  - 同步更新 README.md 中的 docker run 端口映射
  - pyproject.toml 中 streamlit 版本从 >=1.52.1 固定为 ==1.52.1
  - 同步 uv.lock:streamlit 降级锁定至 1.52.1,同步更新 pandas、protobuf、cachetools 等依赖版本
2026-04-13 17:45:17 +08:00

90 lines
1.4 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.

# YieldSmart 农业智能决策系统
基于多因子 Cobb-Douglas 产量模型的作物种植决策支持应用。
## 功能特性
- 🌾 多作物产量预测(水稻、小麦、玉米、大豆、油菜、棉花)
- 📊 影响因子雷达图可视化
- 🏅 作物推荐智能排行
- 📈 产量敏感性分析(氮肥/降雨量)
- 💡 智能种植建议与环境匹配评估
## 技术栈
- Python 3.14+
- Streamlit 1.52.1
- Plotly 6.5.0
- Pandas 2.3.3
- NumPy 2.3.5
## 快速开始
### 使用 uv推荐
```bash
# 安装依赖
uv sync
# 运行应用
uv run streamlit run app.py
```
### 使用传统方式
```bash
# 创建虚拟环境
python -m venv .venv
source .venv/bin/activate
# 安装依赖
pip install -r requirements.txt
# 运行应用
streamlit run app.py
```
## 项目结构
```
YieldSmart/
├── app.py # 主应用文件Streamlit
├── main.py # 入口文件
├── pyproject.toml # 项目配置
├── justfile # 任务自动化
├── Dockerfile # Docker 配置
└── README.md # 项目文档
```
## 使用 just
项目使用 justfile 进行任务管理:
```bash
# 查看所有可用命令
just --list
# 运行应用
just run
# 代码格式化
just format
# 代码检查
just check
```
## Docker 部署
```bash
# 构建镜像
docker build -t yieldsmart .
# 运行容器
docker run -p 8000:8000 yieldsmart
```
## 许可证
MIT License