ShiwenNi commited on
Commit
77ef2bf
1 Parent(s): eed707d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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]
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},
@@ -52,7 +52,7 @@ class Reviewer:
52
  )
53
  result = ''
54
  for choice in response.choices:
55
- result += choice.message.content + "\n伦理声明/Ethics statement:\n--禁止直接复制生成的评论用于任何论文审稿工作!\n--Direct copying of generated comments for any paper review work is prohibited!"
56
  print("********"*10)
57
  print(result)
58
  print("********"*10)
 
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 +"Add after each generated paragraph (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},
 
52
  )
53
  result = ''
54
  for choice in response.choices:
55
+ result += choice.message.content + "\n\n⚠伦理声明/Ethics statement:\n--禁止直接复制生成的评论用于任何论文审稿工作!\n--Direct copying of generated comments for any paper review work is prohibited!"
56
  print("********"*10)
57
  print(result)
58
  print("********"*10)