Spaces:
Runtime error
Runtime error
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 | |