diff --git a/.github/workflows/black_check.yml b/.github/workflows/black_check.yml index b08e4625..542da966 100644 --- a/.github/workflows/black_check.yml +++ b/.github/workflows/black_check.yml @@ -23,4 +23,4 @@ jobs: pip install black==24.10.0 - name: Run Black run: | - black --check . --line-length 120 + black --check . diff --git a/factgenie/datasets/rotowire_shared_task.py b/factgenie/datasets/rotowire_shared_task.py index ace69ae9..3ab808da 100644 --- a/factgenie/datasets/rotowire_shared_task.py +++ b/factgenie/datasets/rotowire_shared_task.py @@ -3,6 +3,7 @@ import markdown import textwrap + class RotowireSharedTask(Dataset): def load_examples(self, split, data_path): examples = [] @@ -15,7 +16,7 @@ def load_examples(self, split, data_path): examples.append(summary) return examples - + def render(self, example): html = markdown.markdown(example, extensions=["markdown.extensions.tables"]) html = html.replace("