Skip to content

Commit

Permalink
Use epi dkg url rather than local host
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Sep 18, 2024
1 parent 2f6453e commit bdead12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions notebooks/Entity Similarity Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"metadata": {},
"outputs": [],
"source": [
"URL = \"http://127.0.0.1:8771/api/entity_similarity\"\n",
"URL = \"http://mira-epi-dkg-lb-c7b58edea41524e6.elb.us-east-1.amazonaws.com:8771/api/entity_similarity\"\n",
"\n",
"def get_similarities_df(sources, targets=None):\n",
" if targets is None:\n",
Expand All @@ -62,7 +62,7 @@
" df = pd.DataFrame(res.json())\n",
"\n",
" curies = \",\".join(sorted(set(df.source).union(df.target)))\n",
" res = requests.get(f\"http://127.0.0.1:8771/api/entities/{curies}\").json()\n",
" res = requests.get(f\"http://mira-epi-dkg-lb-c7b58edea41524e6.elb.us-east-1.amazonaws.com:8771/api/entities/{curies}\").json()\n",
" names = {record['id']: record['name'] for record in res}\n",
" \n",
" assert \"similarity\" in df.columns\n",
Expand Down Expand Up @@ -533,7 +533,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
8 changes: 4 additions & 4 deletions notebooks/Extend_DKG_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
}
],
"source": [
"response = requests.post(\"http://localhost:8771/api/add_nodes\", json=node_list)\n",
"response = requests.post(\"http://mira-epi-dkg-lb-c7b58edea41524e6.elb.us-east-1.amazonaws.com:8771/api/add_nodes\", json=node_list)\n",
"response.status_code"
]
},
Expand Down Expand Up @@ -210,7 +210,7 @@
"source": [
"node_list.append(node3)\n",
"node_list.append(node1)\n",
"response = requests.post(\"http://localhost:8771/api/add_nodes\", json=node_list)\n",
"response = requests.post(\"http://mira-epi-dkg-lb-c7b58edea41524e6.elb.us-east-1.amazonaws.com:8771/api/add_nodes\", json=node_list)\n",
"response.status_code"
]
},
Expand Down Expand Up @@ -298,7 +298,7 @@
],
"source": [
"response = requests.post(\n",
" \"http://localhost:8771/api/add_relations\", json=relation_list\n",
" \"http://mira-epi-dkg-lb-c7b58edea41524e6.elb.us-east-1.amazonaws.com:8771/api/add_relations\", json=relation_list\n",
")\n",
"response.status_code"
]
Expand Down Expand Up @@ -415,7 +415,7 @@
"]\n",
"\n",
"response = requests.post(\n",
" \"http://localhost:8771/api/add_resources\", json=resource_list\n",
" \"http://mira-epi-dkg-lb-c7b58edea41524e6.elb.us-east-1.amazonaws.com:8771/api/add_resources\", json=resource_list\n",
")\n",
"response.status_code"
]
Expand Down

0 comments on commit bdead12

Please sign in to comment.