-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 699 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 699 Bytes
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
33
34
35
PYTHON=python
PIP=$(PYTHON) -m pip
UVICORN=$(PYTHON) -m uvicorn
.PHONY: install install-video api gradio test demo eval train-reranker lint fmt
install:
$(PIP) install -e .
install-video:
$(PIP) install -e .[video]
api:
$(UVICORN) app.main:app --host 0.0.0.0 --port 8000 --reload --app-dir backend
gradio:
$(PYTHON) -m frontend.gradio_app.app
test:
$(PYTHON) -m pytest
demo:
$(PYTHON) scripts/run_demo.py
eval:
$(PYTHON) scripts/run_eval.py --benchmark sample_data/benchmark.json
train-reranker:
$(PYTHON) scripts/train_reranker.py --pairs sample_data/preference_pairs.json
lint:
$(PYTHON) -m ruff check backend tests scripts
fmt:
$(PYTHON) -m ruff format backend tests scripts