Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,11 @@ class Reviewer:
|
|
58 |
def stage_1(self, paper):
|
59 |
htmls = []
|
60 |
text = ''
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
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",
|