Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ class Reviewer:
|
|
| 77 |
input_text = "This is the paper for your review:" + text[:input_text_index]
|
| 78 |
messages=[
|
| 79 |
{"role": "system", "content": "You are a professional reviewer. Now I will give you a paper. You need to give a complete review opinion according to the following requirements and format:"+ self.review_format},
|
| 80 |
-
{"role": "user", "content": input_text + "
|
| 81 |
]
|
| 82 |
|
| 83 |
response = openai.ChatCompletion.create(
|
|
|
|
| 77 |
input_text = "This is the paper for your review:" + text[:input_text_index]
|
| 78 |
messages=[
|
| 79 |
{"role": "system", "content": "You are a professional reviewer. Now I will give you a paper. You need to give a complete review opinion according to the following requirements and format:"+ self.review_format},
|
| 80 |
+
{"role": "user", "content": input_text + " Translate the output into {}.".format(self.language)},
|
| 81 |
]
|
| 82 |
|
| 83 |
response = openai.ChatCompletion.create(
|