def run_upgrade(args):
api_client = ApiClient()
client = AdminApi(api_client)
account = call_api(lambda: client.get_account_info())
if account.key is None:
print('You have not registered with an account. '
'Please run ' + bold('riseml account register'))
else:
register_url = get_riseml_url() + 'upgrade/%s' % account.key
if browser_available():
webbrowser.open_new_tab(register_url)
else:
print('Please visit this URL and follow instructions'
' to upgrade your account: %s' % register_url)
评论列表
文章目录