mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-23 09:10:55 -05:00
refac
This commit is contained in:
@@ -632,7 +632,8 @@ class MistralLoader:
|
||||
try:
|
||||
async with self._get_session() as session:
|
||||
if self.use_base64:
|
||||
documents = self._process_results(await self._process_ocr_async(session, self._get_file_data_url()))
|
||||
ocr_response = await self._process_ocr_async(session, self._get_file_data_url())
|
||||
documents = self._process_results(ocr_response)
|
||||
total_time = time.time() - start_time
|
||||
log.info(
|
||||
f'Async OCR workflow completed in {total_time:.2f}s, produced {len(documents)} documents'
|
||||
|
||||
Reference in New Issue
Block a user