From 641df4c8946640b2c08b45ba4755b9da955dfdac Mon Sep 17 00:00:00 2001 From: Sherman Siu Date: Sun, 15 Oct 2023 11:40:57 -0400 Subject: [PATCH] Apply black formatting. --- promptsource/app.py | 3 +-- promptsource/templates.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/promptsource/app.py b/promptsource/app.py index 8ca9d8e1d..f3ad9a4fc 100644 --- a/promptsource/app.py +++ b/promptsource/app.py @@ -195,7 +195,7 @@ def show_text(t, width=WIDTH, with_markdown=False): pool.join() results = [] - for (dataset_name, subset_name) in template_collection.keys: + for dataset_name, subset_name in template_collection.keys: # Collect split sizes (train, validation and test) if dataset_name not in all_infos: infos = get_dataset_infos(dataset_name) @@ -298,7 +298,6 @@ def show_text(t, width=WIDTH, with_markdown=False): # If a particular dataset is selected, loads dataset and template information # if dataset_key is not None: - # # Check for subconfigurations (i.e. subsets) # diff --git a/promptsource/templates.py b/promptsource/templates.py index ba0b92816..e4049996a 100644 --- a/promptsource/templates.py +++ b/promptsource/templates.py @@ -457,7 +457,6 @@ class TemplateCollection: """ def __init__(self): - # Dict of all the DatasetTemplates, key is the tuple (dataset_name, subset_name) self.datasets_templates: Dict[(str, Optional[str]), DatasetTemplates] = self._collect_datasets()