From 7877a93c4513bd175e762df2b123ed6aeb4cb39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=A5=E4=B9=94?= <83450930+Liyulingyue@users.noreply.github.com> Date: Tue, 7 Nov 2023 04:02:06 +0800 Subject: [PATCH] Update hub.py --- python/paddle/hapi/hub.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python/paddle/hapi/hub.py b/python/paddle/hapi/hub.py index a9118eb1c6cd0b..c53e8b5dfc9a26 100644 --- a/python/paddle/hapi/hub.py +++ b/python/paddle/hapi/hub.py @@ -224,11 +224,9 @@ def help(repo_dir, model, source='github', force_reload=False): Args: repo_dir(str): Github or local path. - - - github path (str): A string with format "repo_owner/repo_name[:tag_name]" with an optional - tag/branch. The default branch is `main` if not specified. - local path (str): Local repo path. - + - github path (str): A string with format "repo_owner/repo_name[:tag_name]" with an optional + tag/branch. The default branch is `main` if not specified. + - local path (str): Local repo path. model (str): Model name. source (str): `github` | `gitee` | `local`. Default is `github`. force_reload (bool, optional): Default is `False`. @@ -237,6 +235,7 @@ def help(repo_dir, model, source='github', force_reload=False): docs Examples: + .. code-block:: python >>> import paddle