mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
89709f5f80
commit
3dc526475d
1 changed files with 2 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue