未验证 提交 4943b793 编写于 作者: C chenjian 提交者: GitHub

Fix the problem caused by app.run when the model is None (#1015)

上级 733cd4eb
......@@ -65,7 +65,9 @@ class Api(object):
self._reader = LogReader(logdir)
if model:
self._reader.model = model
self.model_name = os.path.basename(model)
self.model_name = os.path.basename(model)
else:
self.model_name = ''
# use a memory cache to reduce disk reading frequency.
cache = MemCache(timeout=cache_timeout)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册