Binder / demos /get_key.py
Timothyxxx
Init
f6f97d8
raw
history blame contribute delete
384 Bytes
import requests
def get_key():
URL = "http://54.242.37.195:20217/api/predict"
# The springboard machine we built to protect the key, 20217 is the birthday of Tianbao's girlfriend
# we will only let the demo machine have the access to the keys
one_key = requests.post(url=URL, json={"data": "Hi, binder server. Give me a key!"}).json()['data'][0]
return one_key