Ghaithhmz's picture
adding the hugging face deployment pipeline
28a6ef1
raw
history blame contribute delete
604 Bytes
# Variables
VENV = venv
ifeq ($(OS),Windows_NT)
BIN = $(VENV)/Scripts
else
BIN = $(VENV)/bin
endif
PYTHON = $(BIN)/python
PIP = $(BIN)/pip
.PHONY: install run clean help venv
help:
@echo "Available commands:"
@echo " install : Create virtual environment and install dependencies"
@echo " run : Run the Gradio application via virtual environment"
@echo " clean : Remove temporary files and virtual environment"
$(VENV):
python -m venv $(VENV)
install: $(VENV)
$(PIP) install -r requirements.txt
run:
$(PYTHON) app.py
clean:
rm -rf __pycache__ .pytest_cache
rm -rf $(VENV)