Download Makefile from fchavelli/tsseg: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/spaces/fchavelli/tsseg/resolve/main/Makefile
- Command line
-
hf download hf://spaces/fchavelli/tsseg/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/fchavelli/tsseg/resolve/main/Makefile
1.61 kB
| CONDA ?= $(shell which conda 2>/dev/null || echo conda) | |
| ENV_NAME ?= tsseg-app-env | |
| PYTHON ?= python | |
| # ββ Install ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| install: | |
| $(CONDA) create -n $(ENV_NAME) python=3.10 -y | |
| $(CONDA) run -n $(ENV_NAME) pip install -r requirements.txt | |
| $(CONDA) run -n $(ENV_NAME) pip install -e ".[dev]" | |
| @echo "Environment '$(ENV_NAME)' ready. Activate with: conda activate $(ENV_NAME)" | |
| install-dev: install | |
| $(CONDA) run -n $(ENV_NAME) pip install pytest ruff | |
| # ββ Run ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| run: | |
| $(PYTHON) app.py | |
| run-share: | |
| GRADIO_SHARE=1 $(PYTHON) app.py | |
| # ββ Quality ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| test: | |
| pytest tests/ -v | |
| lint: | |
| ruff check . | |
| format: | |
| ruff format . | |
| # ββ Clean ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| clean: | |
| rm -rf __pycache__ src/__pycache__ tests/__pycache__ | |
| rm -rf .pytest_cache .ruff_cache | |
| find . -name "*.pyc" -delete | |