ShiwenNi commited on
Commit
caad61f
1 Parent(s): 701a9d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ class Reviewer:
40
  review_prompt_token = 1000
41
  text_token = len(self.encoding.encode(text))
42
  input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/(text_token+1))
43
- input_text = "This is the paper for your review:" + text[:input_text_index] "(This text is generated by ChatGPT for reference only, strain to copy!)"
44
  messages=[
45
  {"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)},
46
  {"role": "user", "content": input_text},
 
40
  review_prompt_token = 1000
41
  text_token = len(self.encoding.encode(text))
42
  input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/(text_token+1))
43
+ input_text = "This is the paper for your review:" + text[:input_text_index]
44
  messages=[
45
  {"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)},
46
  {"role": "user", "content": input_text},