File size: 604 Bytes
28a6ef1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
30
31
32
# 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)