@@ -16,7 +16,9 @@ def run(file_name = None,
1616 display_results : bool = True ,
1717 text_to_append_to_summary : str = None ,
1818 text_to_append_to_analysis : str = None ,
19- provider : str = 'google' ,
19+ summary_html_file_name = None , # write to these files if supplied
20+ analysis_html_file_name = None , # write to these files if supplied
21+ provider : str = 'openai' ,
2022 max_analyze_log_tries = 3 ,
2123 ):
2224
@@ -97,7 +99,9 @@ def run(file_name = None,
9799
98100 # Put log summary in an html window
99101 if display_results :
100- fn = os .path .join (output_file_path ,'log_summary.html' )
102+ fn = summary_html_file_name
103+ if not fn :
104+ fn = os .path .join (output_file_path ,'log_summary.html' )
101105 text = log_info .summary
102106 if text_to_append_to_summary :
103107 text += text_to_append_to_summary
@@ -142,7 +146,9 @@ def run(file_name = None,
142146 text = log_info .analysis
143147 if text_to_append_to_analysis :
144148 text += text_to_append_to_analysis
145- fn = os .path .join (output_file_path ,'analysis.html' )
149+ fn = analysis_html_file_name
150+ if not fn :
151+ fn = os .path .join (output_file_path ,'analysis.html' )
146152 save_as_html (text , file_name = fn ,
147153 title = 'Analysis of %s' % (file_name ))
148154 print ("Loading analysis at %s" % (fn ))
0 commit comments