Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ class Reviewer:
|
|
95 |
input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/text_token)
|
96 |
input_text = "This is the paper for your review:" + text[:input_text_index]
|
97 |
messages=[
|
98 |
-
{"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 +"
|
99 |
{"role": "user", "content": input_text},
|
100 |
]
|
101 |
|
|
|
95 |
input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/text_token)
|
96 |
input_text = "This is the paper for your review:" + text[:input_text_index]
|
97 |
messages=[
|
98 |
+
{"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 +" Must be output in {}.".format(self.language)},
|
99 |
{"role": "user", "content": input_text},
|
100 |
]
|
101 |
|