ShiwenNi commited on
Commit
b03549d
1 Parent(s): 46f2a8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -53,7 +53,9 @@ class Reviewer:
53
  )
54
  result = ''
55
  for choice in response.choices:
56
- result += choice.message.content + "\n\n⚠伦理声明/Ethics statement:\n--禁止直接复制生成的评论用于任何论文审稿工作!\n--Direct copying of generated comments for any paper review work is prohibited!"
 
 
57
  print("********"*10)
58
  print(result)
59
  print("********"*10)
@@ -61,7 +63,7 @@ class Reviewer:
61
  print("completion_token_used:", response.usage.completion_tokens)
62
  print("total_token_used:", response.usage.total_tokens)
63
  print("response_time:", response.response_ms/1000.0, 's')
64
- result = insert_sentence(result, '**Generated by ChatGPT, no copying allowed!**', 10)
65
  return result, response.usage.total_tokens
66
 
67
  def contains_chinese(text):
 
53
  )
54
  result = ''
55
  for choice in response.choices:
56
+ result += choice.message.content
57
+ result = insert_sentence(result, '**Generated by ChatGPT, no copying allowed!**', 10)
58
+ result += "\n\n⚠伦理声明/Ethics statement:\n--禁止直接复制生成的评论用于任何论文审稿工作!\n--Direct copying of generated comments for any paper review work is prohibited!"
59
  print("********"*10)
60
  print(result)
61
  print("********"*10)
 
63
  print("completion_token_used:", response.usage.completion_tokens)
64
  print("total_token_used:", response.usage.total_tokens)
65
  print("response_time:", response.response_ms/1000.0, 's')
66
+
67
  return result, response.usage.total_tokens
68
 
69
  def contains_chinese(text):