Spaces:
Sleeping
Sleeping
Download Makefile from batmac/docker-captioner: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/batmac/docker-captioner/resolve/main/Makefile
- Command line
-
hf download hf://spaces/batmac/docker-captioner/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/batmac/docker-captioner/resolve/main/Makefile
297 Bytes
| .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/ |