fix format

This commit is contained in:
jiangyu.xzy
2022-11-01 16:35:46 +08:00
parent 184c35f800
commit 5f3c9433fc
2 changed files with 1 additions and 2 deletions

View File

@@ -647,7 +647,6 @@ class HubApi:
return self._check_cookie(use_cookies=use_cookies)
class ModelScopeConfig:
path_credential = expanduser(DEFAULT_CREDENTIALS_PATH)
COOKIES_FILE_NAME = 'cookies'

View File

@@ -95,7 +95,7 @@ def create_library_statistics(method: str,
try:
path = f'{get_endpoint()}/api/v1/statistics/library'
headers = {'user-agent': ModelScopeConfig.get_user_agent()}
params = {"Method": method, "Name": name, "CnName": cn_name}
params = {'Method': method, 'Name': name, 'CnName': cn_name}
r = requests.post(path, params=params, headers=headers)
r.raise_for_status()
except Exception: