Spaces:
Running
Running
Update app.py
Browse files
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 = "
|
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}')
|