Created
November 6, 2019 16:21
-
-
Save gaganmanku96/2e06180cd739f1da17b0066776888217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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