Files
pest-image-search/justfile
zhenghu ec7c9f8dbe feat: 初始化病虫害以图搜图应用
- 基于 CLIP 模型实现图片相似度搜索(app.py / main.py)
  - 新增 Streamlit 可视化交互界面
  - 新增 pyproject.toml、justfile、Dockerfile 项目配置
  - 补充完整 README 文档(功能介绍、快速开始、Docker 部署)
  - 新增 .gitignore
2026-04-14 16:24:04 +08:00

31 lines
591 B
Makefile

# Justfile for pest-image-search 病虫害以图搜图
# 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 requests pillow numpy torch transformers
# 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