File size: 297 Bytes
2056905
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14

.PHONY: run dockerbuild dockerrun

run:
	@uvicorn captioner:app

dockerbuild:
	@docker build -t captioner .

dockerrun:
	@docker run --rm -p 8000:8000 captioner

test: 
	@time curl -X POST -H "Content-Type: application/json" -d '{"url": "https://cataas.com/cat" }'  http://127.0.0.1:8000/caption/