Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions prompting/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def create_task(
dataset = DATASETS.get(dataset_name, None)
if dataset is None:
raise ValueError(f"Dataset {dataset_name} not found")
elif task_name == SummarizationTask.name:
dataset = dataset(selector = "all")
else:
dataset = dataset()

Expand All @@ -51,6 +49,12 @@ def create_task(
translation_pipeline=translation_pipeline,
context=dataset.next()
)
elif task_name == SummarizationTask.name:
return task(
llm_pipeline=llm_pipeline,
context=dataset.next(selector = "all"),
create_reference=create_reference,
)

return task(
llm_pipeline=llm_pipeline,
Expand Down