Fix wrong url in file_download comment; as well as remove wrong comment in dgds/backbone. (#233)

This commit is contained in:
Zhengyang Song
2023-03-29 10:09:56 +08:00
committed by GitHub
parent a63622178f
commit eed8824ee8
2 changed files with 1 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ def model_file_download(
def get_file_download_url(model_id: str, file_path: str, revision: str):
"""Format file download url according to `model_id`, `revision` and `file_path`.
e.g., Given `model_id=john/bert`, `revision=master`, `file_path=README.md`,
the resulted download url is: https://modelscope.co/api/v1/models/john/bert/repo?Revision=master&FilePath=README.md
the resulted download url is: https://modelscope.cn/api/v1/models/john/bert/repo?Revision=master&FilePath=README.md
Args:
model_id (str): The model_id.

View File

@@ -13,7 +13,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""PyTorch BERT model."""
from __future__ import absolute_import, division, print_function
import os.path