mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-29 03:39:58 +00:00

* Split root conftest into multiple ones and remove unused fixtures * Remove some constants and make them fixtures * Remove unnecessary fixture scoping * Fix failing whisper tests * Fix image_file_paths fixture
15 lines
320 B
Python
15 lines
320 B
Python
import pytest
|
|
|
|
from haystack.nodes import FARMReader
|
|
|
|
|
|
@pytest.fixture
|
|
def reader_without_normalized_scores():
|
|
return FARMReader(
|
|
model_name_or_path="deepset/bert-medium-squad2-distilled",
|
|
use_gpu=False,
|
|
top_k_per_sample=5,
|
|
num_processes=0,
|
|
use_confidence_scores=False,
|
|
)
|