Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,8 +35,11 @@ class Reviewer:
|
|
| 35 |
sections_of_interest = self.stage_1(paper)
|
| 36 |
# extract the essential parts of the paper
|
| 37 |
text = ''
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
| 40 |
intro_title = next((item for item in paper.section_names if 'ntroduction' in item.lower()), None)
|
| 41 |
if intro_title is not None:
|
| 42 |
text += 'Introduction: ' + paper.section_texts[intro_title]
|
|
|
|
| 35 |
sections_of_interest = self.stage_1(paper)
|
| 36 |
# extract the essential parts of the paper
|
| 37 |
text = ''
|
| 38 |
+
try:
|
| 39 |
+
text += 'Title:' + paper.title + '. '
|
| 40 |
+
text += 'Abstract: ' + paper.section_texts['Abstract']
|
| 41 |
+
except error:
|
| 42 |
+
pass
|
| 43 |
intro_title = next((item for item in paper.section_names if 'ntroduction' in item.lower()), None)
|
| 44 |
if intro_title is not None:
|
| 45 |
text += 'Introduction: ' + paper.section_texts[intro_title]
|