Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ class Reviewer:
|
|
| 62 |
text += 'Title:' + paper.title + '. '
|
| 63 |
text += 'Abstract: ' + paper.section_texts['Abstract']
|
| 64 |
except:
|
| 65 |
-
|
| 66 |
openai.api_key = self.api
|
| 67 |
messages = [
|
| 68 |
{"role": "system",
|
|
@@ -72,7 +72,7 @@ class Reviewer:
|
|
| 72 |
f"Now I will give you the title and abstract and the headings of potential sections. "
|
| 73 |
f"You need to reply at most two headings. Then I will further provide you the full information, includes aforementioned sections and at most two sections you called for.\n\n"
|
| 74 |
f"Title: {paper.title}\n\n"
|
| 75 |
-
f"Abstract: {
|
| 76 |
f"Potential Sections: {paper.section_names[2:-1]}\n\n"
|
| 77 |
f"Follow the following format to output your choice of sections:"
|
| 78 |
f"{{chosen section 1}}, {{chosen section 2}}\n\n"},
|
|
|
|
| 62 |
text += 'Title:' + paper.title + '. '
|
| 63 |
text += 'Abstract: ' + paper.section_texts['Abstract']
|
| 64 |
except:
|
| 65 |
+
paper_Abstract = paper.section_texts[:2]
|
| 66 |
openai.api_key = self.api
|
| 67 |
messages = [
|
| 68 |
{"role": "system",
|
|
|
|
| 72 |
f"Now I will give you the title and abstract and the headings of potential sections. "
|
| 73 |
f"You need to reply at most two headings. Then I will further provide you the full information, includes aforementioned sections and at most two sections you called for.\n\n"
|
| 74 |
f"Title: {paper.title}\n\n"
|
| 75 |
+
f"Abstract: {paper_Abstract}\n\n"
|
| 76 |
f"Potential Sections: {paper.section_names[2:-1]}\n\n"
|
| 77 |
f"Follow the following format to output your choice of sections:"
|
| 78 |
f"{{chosen section 1}}, {{chosen section 2}}\n\n"},
|