Skip to content

Instantly share code, notes, and snippets.

@gaganmanku96
Created November 6, 2019 16:21
Show Gist options
  • Save gaganmanku96/2e06180cd739f1da17b0066776888217 to your computer and use it in GitHub Desktop.
Save gaganmanku96/2e06180cd739f1da17b0066776888217 to your computer and use it in GitHub Desktop.
import requests
f = {'file': open('img.jpg', 'rb').read()}
URL = 'http://127.0.0.1:5000/predict'
result = requests.post(URL, files=f)
print(result.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment