inference_proxy_client.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:pymyra 作者: myralabs 项目源码 文件源码
def __init__(self, host, port, timeoutSeconds=180):
        self._mock_intent = distutils.util.strtobool(
            os.getenv("MYRA_MOCK_PREDICT_INTENT", "0"))
        if self._mock_intent:
            return
        self.host = host
        self.port = port
        self.session = requests.session()
        self.server = "http://%s:%s" % (host, port)
        self.timeoutSeconds = timeoutSeconds
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号