Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ if text_input:
|
|
| 39 |
for entity in entities:
|
| 40 |
single_entity_list = str(entity).strip('][').replace("\'", "").split(', ')
|
| 41 |
if len(single_entity_list) >= 2 and "wikidata" in single_entity_list[1]:
|
| 42 |
-
entities_map[single_entity_list[0].strip()] = get_wikidata_id(single_entity_list[1])
|
| 43 |
entities_link_descriptions[single_entity_list[0].strip()] = single_entity_list[2].strip().replace("(", "").replace(")", "")
|
| 44 |
|
| 45 |
combined_entity_info_dictionary = dict([(k, [entities_map[k], entities_link_descriptions[k]]) for k in entities_map])
|
|
|
|
| 39 |
for entity in entities:
|
| 40 |
single_entity_list = str(entity).strip('][').replace("\'", "").split(', ')
|
| 41 |
if len(single_entity_list) >= 2 and "wikidata" in single_entity_list[1]:
|
| 42 |
+
entities_map[single_entity_list[0].strip()] = get_wikidata_id(single_entity_list[1])
|
| 43 |
entities_link_descriptions[single_entity_list[0].strip()] = single_entity_list[2].strip().replace("(", "").replace(")", "")
|
| 44 |
|
| 45 |
combined_entity_info_dictionary = dict([(k, [entities_map[k], entities_link_descriptions[k]]) for k in entities_map])
|