mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 12:39:25 +01:00
fix format
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user