Created
June 25, 2019 08:29
-
-
Save nicoforteza/2b46ef2f3ccf7c9bb7966df7b23cc0ee 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 pandas as pd | |
import requests | |
import json | |
# API url | |
url = "http://0.0.0.0:5000/ad" | |
# data path | |
data = "dir/input/data/test/X.csv" | |
# load data to test the API - we are not testing the model! | |
x = pd.read_csv(data, index_col=0) | |
# make the post | |
print(requests.post(url, data=json.dumps(x.to_dict())).content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment