tombryan commited on
Commit
f8367ae
1 Parent(s): 17e5e42

wrong name

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = article['lccn']['dpedia_ids'][0].replace('%2C_', ', ')
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,