Skip to content

Commit

Permalink
Fix bug in logging (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajprad authored Jan 24, 2025
1 parent fcb8d4b commit e049c74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions llama_extract/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
StatusEnum,
Project,
)
from llama_cloud.core.api_error import ApiError
from llama_cloud.client import AsyncLlamaCloud
from llama_extract.utils import JSONObjectType, augment_async_errors
from llama_index.core.schema import BaseComponent
Expand Down Expand Up @@ -242,7 +241,7 @@ async def queue_extraction(
)

if self._verbose:
for file, job in zip(files, results):
for file, job in zip(files, extract_jobs):
file_repr = (
str(file) if isinstance(file, (str, Path)) else "<bytes/buffer>"
)
Expand Down
1 change: 1 addition & 0 deletions tests/test_extract_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def llama_extract():
api_key=LLAMA_CLOUD_API_KEY,
base_url=LLAMA_CLOUD_BASE_URL,
project_id=LLAMA_CLOUD_PROJECT_ID,
verbose=True,
)


Expand Down
1 change: 1 addition & 0 deletions tests/test_extract_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def extractor():
api_key=LLAMA_CLOUD_API_KEY,
base_url=LLAMA_CLOUD_BASE_URL,
project_id=LLAMA_CLOUD_PROJECT_ID,
verbose=True,
)
yield extract
# Cleanup thread pool at end of session
Expand Down

0 comments on commit e049c74

Please sign in to comment.