Skip to content

Commit

Permalink
Fix Ruff.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwelsh committed Oct 6, 2024
1 parent dd00606 commit d4bd335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions apps/query-demo/querydemo/loaddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
OpenAIPropertyExtractor,
)
from sycamore.transforms.merge_elements import GreedyTextElementMerger
from sycamore.transforms.summarize_images import SummarizeImages
from sycamore.llms import OpenAI, OpenAIModels
from sycamore.transforms.embed import SentenceTransformerEmbedder
from opensearchpy import OpenSearch
Expand Down Expand Up @@ -148,8 +147,8 @@ def main():

partitioned_docset = (
docset.partition(partitioner=ArynPartitioner(extract_table_structure=True, use_ocr=True, extract_images=True))
# XXX MDW 3 Oct 2024 - Disable this for now as it seems to be failing on the demo instance.
# .transform(SummarizeImages)
# XXX MDW 3 Oct 2024 - Disable this for now as it seems to be failing on the demo instance.
# .transform(SummarizeImages)
.materialize(path=f"{args.tempdir}/ntsb-loader-stage-0", source_mode=sycamore.MATERIALIZE_USE_STORED)
.map(add_schema_property)
.materialize(path=f"{args.tempdir}/ntsb-loader-stage-1", source_mode=sycamore.MATERIALIZE_USE_STORED)
Expand Down
1 change: 0 additions & 1 deletion apps/query-ui/queryui/loaddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
OpenAIPropertyExtractor,
)
from sycamore.transforms.merge_elements import GreedyTextElementMerger
from sycamore.transforms.summarize_images import SummarizeImages
from sycamore.llms import OpenAI, OpenAIModels
from sycamore.transforms.embed import SentenceTransformerEmbedder
from opensearchpy import OpenSearch
Expand Down

0 comments on commit d4bd335

Please sign in to comment.