Skip to content

Commit

Permalink
rever import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmwilliams committed Oct 6, 2023
1 parent df2abfc commit eb28cc1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions haystack/preview/components/readers/extractive.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import math
import warnings
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple, Union
import math
import warnings

from haystack.preview import ComponentError, Document, ExtractedAnswer, component, default_from_dict, default_to_dict
from haystack.preview import component, default_from_dict, default_to_dict, ComponentError, Document, ExtractedAnswer
from haystack.preview.lazy_imports import LazyImport

with LazyImport(
"Run 'pip install transformers[torch,sentencepiece]==4.34.0 sentence-transformers>=2.2.0'"
) as torch_and_transformers_import:
import torch
from tokenizers import Encoding
from transformers import AutoModelForQuestionAnswering, AutoTokenizer
from tokenizers import Encoding
import torch


@component
Expand Down

0 comments on commit eb28cc1

Please sign in to comment.