Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
58 |
except:
|
59 |
-
|
|
|
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",
|