def status(self):
"""
Reports on the status of this translation server.
"""
response_data = {
'status': self._status,
'models': self._models,
'version': pkg_resources.require("nematus")[0].version,
'service': 'nematus',
}
response.content_type = "application/json"
return json.dumps(response_data)
评论列表
文章目录