-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 888 Bytes
/
Makefile
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
# To create Azure infrastructure
sub-init:
echo "SUB_ID=<input subscription_id>" > sub.env
venv_setup:
rm -rf .venv
python3.11 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -r ./requirements.txt
infra:
./setup/create-cognitive-resource.sh
sample_workflow:
.venv/bin/python ./scripts/read_model.py
ar_memo:
.venv/bin/python ./scripts/full_memo_generation.py
ocr_from_doc:
.venv/bin/python ./scripts/pdf_model.py --data_input_file "./data/sample.pdf"\
--output_path "./outputs/sample.txt"
font-styles:
# Uses an internal file
.venv/bin/python ./scripts/sample_analyze_addon_fonts.py
# Commit local branch changes
branch=$(shell git symbolic-ref --short HEAD)
now=$(shell date '+%F_%H:%M:%S' )
git-push:
git add . && git commit -m "Changes as of $(now)" && git push -u origin $(branch)
git-pull:
git pull origin $(branch)