Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmezzetti committed Dec 3, 2024
1 parent c6cd565 commit b05abd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/python/testpipeline/testdata/testtextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import unittest

import torch

from txtai.pipeline import Textractor

# pylint: disable = C0411
Expand Down Expand Up @@ -54,6 +56,9 @@ def testDocling(self):
Test docling backend
"""

# Set default device to CPU
torch.set_default_device("cpu")

textractor = Textractor(backend="docling")

# Extract text and check for Markdown formatting
Expand Down

0 comments on commit b05abd2

Please sign in to comment.