ShiwenNi commited on
Commit
89a989b
·
1 Parent(s): 10af8ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- text += 'Title:' + paper.title + '. '
39
- text += 'Abstract: ' + paper.section_texts['Abstract']
 
 
 
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]