@@ -95,11 +95,14 @@ def __init__(self) -> None:
9595 self .abstract = "unknown"
9696
9797 def read_title_and_abstract (self , txt ):
98- title , abstract = find_title_and_abs (txt )
99- if title is not None :
100- self .title = title .replace ('\n ' , ' ' ).replace ('\\ \\ ' , ' ' ).replace (' ' , '' ).replace (' ' , '' )
101- if abstract is not None :
102- self .abstract = abstract .replace ('\n ' , ' ' ).replace ('\\ \\ ' , ' ' ).replace (' ' , '' ).replace (' ' , '' )
98+ try :
99+ title , abstract = find_title_and_abs (txt )
100+ if title is not None :
101+ self .title = title .replace ('\n ' , ' ' ).replace ('\\ \\ ' , ' ' ).replace (' ' , '' ).replace (' ' , '' )
102+ if abstract is not None :
103+ self .abstract = abstract .replace ('\n ' , ' ' ).replace ('\\ \\ ' , ' ' ).replace (' ' , '' ).replace (' ' , '' )
104+ except :
105+ pass
103106
104107 def merge_result (self , arr , mode , msg , buggy_lines = [], buggy_line_surgery_n_lines = 10 ):
105108 """
@@ -265,12 +268,12 @@ def Latex精细分解与转化(file_manifest, project_folder, llm_kwargs, plugin
265268
266269 else :
267270 # <-------- gpt 多线程请求 ---------->
268- LATEX_EXPERIMENTAL , = get_conf ('LATEX_EXPERIMENTAL' )
269271 history_array = [["" ] for _ in range (n_split )]
270- if LATEX_EXPERIMENTAL :
271- paper_meta = f"The paper you processing is `{ lps .title } `, a part of the abstraction is `{ lps .abstract } `"
272- paper_meta_max_len = 888
273- history_array = [[ paper_meta [:paper_meta_max_len ] + '...' , "Understand, what should I do?" ] for _ in range (n_split )]
272+ # LATEX_EXPERIMENTAL, = get_conf('LATEX_EXPERIMENTAL')
273+ # if LATEX_EXPERIMENTAL:
274+ # paper_meta = f"The paper you processing is `{lps.title}`, a part of the abstraction is `{lps.abstract}`"
275+ # paper_meta_max_len = 888
276+ # history_array = [[ paper_meta[:paper_meta_max_len] + '...', "Understand, what should I do?"] for _ in range(n_split)]
274277
275278 gpt_response_collection = yield from request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency (
276279 inputs_array = inputs_array ,
0 commit comments