Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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 |
|