Skip to content

Commit

Permalink
Fix misplaced docstring contents
Browse files Browse the repository at this point in the history
PR #793 updated docstring of download command, when docstring of upload should have been updated.
  • Loading branch information
juhoinkinen authored Sep 30, 2024
1 parent 20ae1e4 commit c923992
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions annif/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit c923992

Please sign in to comment.