ShiwenNi commited on
Commit
fb5a6bb
1 Parent(s): 89a989b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -58,8 +58,11 @@ class Reviewer:
58
  def stage_1(self, paper):
59
  htmls = []
60
  text = ''
61
- text += 'Title: ' + paper.title + '. '
62
- text += 'Abstract: ' + paper.section_texts['Abstract']
 
 
 
63
  openai.api_key = self.api
64
  messages = [
65
  {"role": "system",
 
58
  def stage_1(self, paper):
59
  htmls = []
60
  text = ''
61
+ try:
62
+ text += 'Title:' + paper.title + '. '
63
+ text += 'Abstract: ' + paper.section_texts['Abstract']
64
+ except error:
65
+ pass
66
  openai.api_key = self.api
67
  messages = [
68
  {"role": "system",