feat: 初始化 AgricultureQA 农技智能问答应用
- 搭建基于 Qwen3.5 的 Streamlit 农业技术知识问答应用 - 支持思维链推理展示与模型参数调节 - 新增项目核心文件:app.py、config.py、main.py - 新增工程化配置:pyproject.toml、justfile、Dockerfile、.gitignore - 完善 README 文档,包含快速开始、部署说明及项目结构
This commit is contained in:
30
justfile
Normal file
30
justfile
Normal file
@@ -0,0 +1,30 @@
|
||||
# Justfile for AgricultureQA 农技智能问答
|
||||
# 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 httpx ruff
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user