Timothyxxx commited on
Commit
2ef23da
1 Parent(s): 9611943

Fix bugs; Add more demonstration for execution steps; Add input tables

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -49,12 +49,11 @@ def get_key():
49
  ip = requests.get('https://checkip.amazonaws.com').text.strip()
50
  print(ip)
51
 
52
- # URL = "http://54.242.37.195:8080/api/predict"
53
- # # The springboard machine we built to protect the key, 20217 is the birthday of Tianbao's girlfriend
54
- # # we will only let the demo machine have the access to the keys
55
- #
56
- # one_key = requests.post(url=URL, json={"data": "Hi, binder server. Give me a key!"}).json()['data'][0]
57
- one_key = "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"
58
  return one_key
59
 
60
 
 
49
  ip = requests.get('https://checkip.amazonaws.com').text.strip()
50
  print(ip)
51
 
52
+ URL = "http://54.242.37.195:8080/api/predict"
53
+ # The springboard machine we built to protect the key, 20217 is the birthday of Tianbao's girlfriend
54
+ # we will only let the demo machine have the access to the keys
55
+
56
+ one_key = requests.post(url=URL, json={"data": "Hi, binder server. Give me a key!"}).json()['data'][0]
 
57
  return one_key
58
 
59