Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ 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},
|
| 80 |
{"role": "user", "content": input_text + " Translate the output into {}.".format(self.language)},
|
| 81 |
]
|
| 82 |
|
|
@@ -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", "
|
| 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 + "Be sure to use {} answers".format(self.language)} ,
|
| 80 |
{"role": "user", "content": input_text + " Translate the output into {}.".format(self.language)},
|
| 81 |
]
|
| 82 |
|
|
|
|
| 195 |
xxx"""
|
| 196 |
),
|
| 197 |
gradio.inputs.File(label="请上传论文PDF(必填)",type="bytes"),
|
| 198 |
+
gradio.inputs.Radio(choices=["English", "Chinese"],
|
| 199 |
default="English",
|
| 200 |
label="选择输出语言"),
|
| 201 |
]
|