@@ -162,7 +162,10 @@ def extract_text(
162162 usage_kwargs = usage_kwargs ,
163163 )
164164 try :
165- if enable_highlight and (isinstance (x2text .x2text_instance , LLMWhisperer ) or isinstance (x2text .x2text_instance , LLMWhispererV2 )):
165+ if enable_highlight and (
166+ isinstance (x2text .x2text_instance , LLMWhisperer )
167+ or isinstance (x2text .x2text_instance , LLMWhispererV2 )
168+ ):
166169 process_response : TextExtractionResult = x2text .process (
167170 input_file_path = file_path ,
168171 output_file_path = output_file_path ,
@@ -172,7 +175,7 @@ def extract_text(
172175 )
173176 whisper_hash_value = process_response .extraction_metadata .whisper_hash
174177 metadata = {X2TextConstants .WHISPER_HASH : whisper_hash_value }
175- if hasattr (self .tool , ' update_exec_metadata' ):
178+ if hasattr (self .tool , " update_exec_metadata" ):
176179 self .tool .update_exec_metadata (metadata )
177180 else :
178181 process_response : TextExtractionResult = x2text .process (
@@ -202,6 +205,7 @@ def extract_text(
202205 return extracted_text
203206
204207 # TODO: Reduce the number of params by some dataclass
208+ # TODO: Deprecate and remove `process_text` argument
205209 @log_elapsed (operation = "CHECK_AND_INDEX(overall)" )
206210 @capture_metrics
207211 def index (
0 commit comments