ShiwenNi commited on
Commit
1955476
1 Parent(s): d41c42e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -51,12 +51,15 @@ class Reviewer:
51
 
52
  def stage_1(self, paper):
53
  htmls = []
54
- text = ''
 
55
  try:
56
  text += 'Title:' + paper.title + '. '
57
- text += 'Abstract: ' + paper.section_texts['Abstract']
 
58
  except:
59
- paper_Abstract = 'Abstract'
 
60
  openai.api_key = self.api
61
  messages = [
62
  {"role": "system",
 
51
 
52
  def stage_1(self, paper):
53
  htmls = []
54
+ text = 'Abstract'
55
+ paper_Abstract
56
  try:
57
  text += 'Title:' + paper.title + '. '
58
+ paper_Abstract = paper.section_texts['Abstract']
59
+
60
  except:
61
+ pass
62
+ text += 'Abstract: ' + paper_Abstract
63
  openai.api_key = self.api
64
  messages = [
65
  {"role": "system",