From c92399208cb8da2d522f142686c32493fcb5218c Mon Sep 17 00:00:00 2001 From: Juho Inkinen <34240031+juhoinkinen@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:55:34 +0300 Subject: [PATCH] Fix misplaced docstring contents PR #793 updated docstring of download command, when docstring of upload should have been updated. --- annif/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/annif/cli.py b/annif/cli.py index 29e873e0..82f2835a 100644 --- a/annif/cli.py +++ b/annif/cli.py @@ -633,7 +633,9 @@ def run_upload( that match the given `project_ids_pattern` to archive files, and uploads the archives along with the project configurations to the specified Hugging Face Hub repository. An authentication token and commit message can be given with - options. + options. If the README.md does not exist in the repository it is created with + default contents and metadata of the uploaded projects, if it exists, its + metadata are updated as necessary. """ from huggingface_hub import HfApi from huggingface_hub.utils import HfHubHTTPError, HFValidationError @@ -701,9 +703,7 @@ def run_download(project_ids_pattern, repo_id, token, revision, force): `project_ids_pattern` from the specified Hugging Face Hub repository and unzips the archives to `data/` directory and places the configuration files to `projects.d/` directory. An authentication token and revision can - be given with options. If the README.md does not exist in the repository it is - created with default contents and metadata of the uploaded projects, if it exists, - its metadata are updated as necessary. + be given with options. """ project_ids = hfh_util.get_matching_project_ids_from_hf_hub(