ask-fsdl / Makefile
charlesfrye's picture
adds local serving with hot-reload
41d9b0f
raw
history blame
564 Bytes
ifneq (,$(wildcard ./.env))
include .env
# assume includes OPENAI_API_KEY for LLM inference
export
endif
.PHONY: help
.DEFAULT_GOAL := help
help: ## get a list of all the targets, and their short descriptions
@# source for the incantation: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?##"}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
serve: ## serve this locally
gradio app.py
environment: ## installs requirements
pip install -q -r requirements.txt