Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
1d3a47f
1
Parent(s):
e2d494c
Fixup abstracts edge case detection
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def format_response(neighbors, response):
|
|
75 |
if title is None: # edge case: no title
|
76 |
title = 'No title'
|
77 |
|
78 |
-
if
|
79 |
abstract = 'No abstract'
|
80 |
else:
|
81 |
abstract = _recover_abstract(abstract_inverted_index)
|
|
|
75 |
if title is None: # edge case: no title
|
76 |
title = 'No title'
|
77 |
|
78 |
+
if abstract_inverted_index is None: # edge case: no abstract
|
79 |
abstract = 'No abstract'
|
80 |
else:
|
81 |
abstract = _recover_abstract(abstract_inverted_index)
|