unnellu / selfie2anime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker for API

You can build and run the docker using the following process:

Cloning

git clone https://github.com/jqueguiner/selfie2anime.git selfie2anime 

Building Docker

cd selfie2anime && docker build -t selfie2anime -f Dockerfile .

Running Docker

echo "http://$(curl ifconfig.io):5000" && docker run -p 5000:5000 -d REPO_NAME

Calling the API

curl -X POST "http://MY_SUPER_API_IP:5000/process" -H "accept: image/jpg" -H "Content-Type: application/json" -d '{"url":"https://img.chefdentreprise.com/Img/BREVE/2017/10/321988/Octave-Klaba-OVH-elu-entrepreneur-annee--LE.jpg"}' --output anime_selfie.jpg

About

License:MIT License


Languages

Language:Python 99.6%Language:Dockerfile 0.4%