Files
banana-disease-leaf/justfile
zhenghu 86541eb55e feat: 初始化香蕉叶病害智能识别系统
基于 ViT 视觉变换器实现香蕉叶片病害分类应用,支持 7 类病害识别。

  - app.py: Streamlit 前端应用,包含图片上传、病害识别、置信度图表展示及防治建议
  - pyproject.toml: 项目配置,声明 Python 3.14 及依赖(streamlit、transformers、torch、plotly 等)
  - uv.lock: 依赖版本锁定文件
  - Dockerfile: 基于 uv 镜像的容器化部署配置,含健康检查
  - justfile: 常用开发任务脚本(run、install、format、check 等)
  - main.py: 命令行入口
  - .doc/: 模型使用说明文档

  模型来源: Dmitry43243242/banana-disease-leaf-model (HuggingFace)
2026-04-15 11:25:57 +08:00

31 lines
596 B
Makefile

# Justfile for banana-disease-leaf 香蕉叶病害智能识别系统
# Use `just <command>` to run tasks
# Default task: show available commands
default:
just --list
# Run the Streamlit app
run:
uv run streamlit run app.py
# Install dependencies
install:
uv add streamlit ruff plotly numpy torch transformers pillow
# Format code with ruff
format:
uv run ruff format .
# Check code with ruff
check:
uv run ruff check .
# Run all checks and formatting
lint:
just format && just check
# Clean up cache files
clean:
rm -rf __pycache__ .ruff_cache .streamlit_cache