-
Notifications
You must be signed in to change notification settings - Fork 6
/
Justfile
45 lines (36 loc) · 915 Bytes
/
Justfile
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
36
37
38
39
40
41
42
43
44
45
default:
@just --list
#
# Tensorflow
#
setup-tensorflow:
#!/usr/bin/env bash
poetry install --only main,tensorflow,dev
run-with-tensorflow:
#!/usr/bin/env bash
ML_FRAMEWORK=tensorflow poetry run uvicorn --reload --access-log server:server
#
# Tensorflow lite
#
setup-tensorflow-lite:
#!/usr/bin/env bash
poetry install --only main,tensorflow_lite,dev
run-with-tensorflow-lite:
#!/usr/bin/env bash
poetry run uvicorn --access-log server:server
update:
#!/usr/bin/env bash
poetry update
dev:
#!/usr/bin/env bash
if [ ! -d "testdata/test-models" ]; then
git clone https://github.com/openvisionapi/test-models.git testdata/test-models
fi
poetry install
test:
#!/usr/bin/env bash
source .venv/bin/activate &&
mypy api &&
bandit api &&
ML_FRAMEWORK=tensorflow pytest tests &&
ML_FRAMEWORK=tensorflow_lite pytest tests