cyberandy commited on
Commit
971e940
·
1 Parent(s): 44b938c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,9 +27,9 @@ refined_model = load_model(selected_model_name, selected_entity_set)
27
  def get_wikidata_id(entity_string):
28
  entity_list = entity_string.split("=")
29
  entity_id = str(entity_list[1])
30
- entity_link = "https://www.wikidata.org/wiki/" + entity_id
31
  return {"id": entity_id, "link": entity_link}
32
-
33
  def get_entity_data(entity_link):
34
  try:
35
  response = requests.get(f'https://api.wordlift.io/id/{entity_link}')
 
27
  def get_wikidata_id(entity_string):
28
  entity_list = entity_string.split("=")
29
  entity_id = str(entity_list[1])
30
+ entity_link = "http/www.wikidata.org/entity/" + entity_id
31
  return {"id": entity_id, "link": entity_link}
32
+
33
  def get_entity_data(entity_link):
34
  try:
35
  response = requests.get(f'https://api.wordlift.io/id/{entity_link}')