you should first cd the file of this demo. then: Starting the pytorch server python webserver.py You can now access the API via http://127.0.0.1:5000/ Submitting requests to pytorch server then you can see the result