Spaces:
Runtime error
Runtime error
wrong name
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ def query(sentence: str, state: str, years: List[str]) -> List[str]:
|
|
143 |
if len(article['lccn']['dpedia_ids']) == 0:
|
144 |
location = 'Unknown'
|
145 |
else:
|
146 |
-
location =
|
147 |
results = {
|
148 |
'newspaper_name': doc['lccn']['title'],
|
149 |
'location': location,
|
|
|
143 |
if len(article['lccn']['dpedia_ids']) == 0:
|
144 |
location = 'Unknown'
|
145 |
else:
|
146 |
+
location = doc['lccn']['dpedia_ids'][0].replace('%2C_', ', ')
|
147 |
results = {
|
148 |
'newspaper_name': doc['lccn']['title'],
|
149 |
'location': location,
|