未验证 提交 98d66037 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

Update frontend. (#622)

Add version.py.
上级 7a63628f
......@@ -15,3 +15,4 @@ flask >= 1.1.1
Flask-Babel >= 1.0.0
six >= 1.14.0
protobuf >= 3.1.0
opencv-python
......@@ -24,6 +24,7 @@ import setuptools.command.build_py
import setuptools
from setuptools import setup
from setuptools import find_packages
from visualdl import __version__
import subprocess
TOP_DIR = os.path.realpath(os.path.dirname(__file__))
......@@ -40,7 +41,6 @@ def readlines(name):
return read(name).split('\n')
VERSION_NUMBER = read('VERSION_NUMBER')
LICENSE = readlines('LICENSE')[0].strip()
# use memcache to reduce disk read frequency.
......@@ -95,7 +95,7 @@ cmdclass = {
setup(
name="visualdl",
version=VERSION_NUMBER,
version=__version__,
author="PaddlePaddle and Echarts team",
description="Visualize Deep Learning",
license=LICENSE,
......
......@@ -18,6 +18,6 @@ from __future__ import absolute_import
import os
from visualdl.writer.writer import LogWriter # noqa
from visualdl.version import vdl_version as __version__
ROOT = os.path.dirname(__file__)
__version__ = "2.0.0-alpha.0"
......@@ -278,7 +278,7 @@ def create_app(args):
@app.route('/api/embeddings/embedding')
def embeddings():
run = request.args.get('run')
tag = request.args.get('tag')
tag = request.args.get('tag', 'default')
dimension = request.args.get('dimension')
reduction = request.args.get('reduction')
key = os.path.join('/data/plugin/embeddings/embeddings', run,
......
# Copyright (c) 2020 VisualDL Authors. All Rights Reserve.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# =======================================================================
vdl_version = '2.0.0-alpha.2'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册