ShiwenNi commited on
Commit
2192e16
1 Parent(s): bfbbdb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -76,8 +76,8 @@ class Reviewer:
76
  input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/(text_token+1))
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 +" The output language must be {}.".format(self.language)},
80
- {"role": "user", "content": input_text},
81
  ]
82
 
83
  response = openai.ChatCompletion.create(
@@ -195,7 +195,7 @@ The paper is scored on a scale of 1-10, with 10 being the full mark, and 6 stand
195
  xxx"""
196
  ),
197
  gradio.inputs.File(label="请上传论文PDF(必填)",type="bytes"),
198
- gradio.inputs.Radio(choices=["English", "Chinese"],
199
  default="English",
200
  label="选择输出语言"),
201
  ]
 
76
  input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/(text_token+1))
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 + " The output language must be {}.".format(self.language)},
81
  ]
82
 
83
  response = openai.ChatCompletion.create(
 
195
  xxx"""
196
  ),
197
  gradio.inputs.File(label="请上传论文PDF(必填)",type="bytes"),
198
+ gradio.inputs.Radio(choices=["English", "中文"],
199
  default="English",
200
  label="选择输出语言"),
201
  ]