Last active
August 31, 2018 01:04
-
-
Save MikeLing/42b8cd806aa995f7037c95e8cde15a32 to your computer and use it in GitHub Desktop.
test script for photo-grader
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 | |
import json | |
import csv | |
if __name__ == '__main__': | |
data = [] | |
with open("sample-image-links.csv") as f: | |
reader = csv.reader(f) | |
for row in reader: | |
data.append(row[0]) | |
payload1 = data[0:990] | |
respond = requests.get('http://35.202.251.156:1080/evaluation', data = json.dumps(payload1)) | |
print (respond.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment