ShiwenNi commited on
Commit
7a6b087
1 Parent(s): 54d17c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,13 +19,13 @@ class Reviewer:
19
  self.review_format = review_format
20
 
21
  self.language = language
22
-
23
  self.max_token_num = 4097
24
  self.encoding = tiktoken.get_encoding("gpt2")
25
 
26
 
27
  def review_by_chatgpt(self, paper_list):
28
- text = self.extract_chapter(paper_list)
29
  chat_review_text, total_token_used = self.chat_review(text=text)
30
  return chat_review_text, total_token_used
31
 
 
19
  self.review_format = review_format
20
 
21
  self.language = language
22
+ self.paper_pdf = paper_pdf
23
  self.max_token_num = 4097
24
  self.encoding = tiktoken.get_encoding("gpt2")
25
 
26
 
27
  def review_by_chatgpt(self, paper_list):
28
+ text = self.extract_chapter(self.paper_pdf)
29
  chat_review_text, total_token_used = self.chat_review(text=text)
30
  return chat_review_text, total_token_used
31