Spaces:
Sleeping
Sleeping
Update app.py
Browse files75 unmodified lines7677787980818275 unmodified linestext_token = len(self.encoding.encode(text))except:text_token = 10000input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/(text_token+1))input_text = "This is the paper for your review:" + text[:input_text_index]messages=[{"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)} ,75 unmodified lines7677787980818275 unmodified linestext_token = len(self.encoding.encode(text))except:text_token = 10000input_text_index = int(len(text)*(self.max_token_num-review_prompt_token)/(text_token+1)) - 2000input_text = "This is the paper for your review:" + text[:input_text_index]messages=[{"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)} ,
app.py+1-1