File size: 878 Bytes
acc1fa9
 
 
4def895
acc1fa9
4def895
acc1fa9
 
 
4def895
acc1fa9
 
4def895
acc1fa9
 
4def895
acc1fa9
 
4def895
acc1fa9
 
e670cad
 
acc1fa9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This folder is a mirror of the HuggingFace Space, so it is shaped like one
# (app.py + requirements.txt + README.md), not like the repo's uv packages.
SPACE ?= pyronear/Pyronear-Wildfire-Detection

.PHONY: install run lint format push

install: ## build .venv from requirements.txt (pulls torch — large)
	uv venv --python 3.12
	uv pip install --python .venv -r requirements.txt

run: ## serve the demo at http://localhost:7860
	.venv/bin/python app.py

lint: ## ruff check
	uv run --project ../core ruff check .

format: ## ruff format
	uv run --project ../core ruff format .

push: ## mirror this folder to the Space (needs `hf auth login` or HF_TOKEN)
	uvx --from huggingface_hub hf upload $(SPACE) . . \
	    --repo-type space --exclude ".venv/*" --exclude ".cache/*" --exclude "*__pycache__/*" \
	    --delete "*" \
	    --commit-message "Sync from temporal-model/demo"