Spaces:
Sleeping
Sleeping
| .PHONY: install run dev clean modal-deploy modal-install modal-login help | |
| # Python configuration | |
| PYTHON = python3 | |
| VENV = .venv | |
| VENV_PYTHON = $(VENV)/bin/python | |
| VENV_PIP = $(VENV)/bin/pip | |
| PORT = 7860 | |
| help: ## Show this help message | |
| install: ## Create venv and install dependencies | |
| sudo apt-get update -qq && sudo apt-get install -y -qq graphviz; \ | |
| elif command -v brew >/dev/null 2>&1; then \ | |
| brew install graphviz; \ | |
| elif command -v yum >/dev/null 2>&1; then \ | |
| sudo yum install -y graphviz; \ | |
| else \ | |
| echo "β οΈ Please install graphviz manually"; \ | |
| fi | |
| run: ## Run the application | |
| dev: ## Run with auto-reload | |
| modal-login: ## Authenticate with Modal (run once) | |
| modal-install: ## Install Modal CLI in venv | |
| modal-deploy: ## Deploy backend API to Modal | |
| clean: ## Remove venv and cache files | |