提交 cc252d3d 编写于 作者: S superjom

code format

上级 917e41fd
...@@ -16,11 +16,12 @@ import storage ...@@ -16,11 +16,12 @@ import storage
import graph import graph
app = Flask(__name__, static_url_path="") app = Flask(__name__, static_url_path="")
# set static expires in a short time to reduce browser's memory usage.
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 30
def option_parser(): def option_parser():
""" """
:return: :return:
""" """
parser = OptionParser(usage="usage: visual_dl visual_dl.py "\ parser = OptionParser(usage="usage: visual_dl visual_dl.py "\
...@@ -152,6 +153,7 @@ def individual_image(): ...@@ -152,6 +153,7 @@ def individual_image():
imagefile, as_attachment=True, attachment_filename='img.png') imagefile, as_attachment=True, attachment_filename='img.png')
return response return response
@app.route('/data/plugin/graphs/graph') @app.route('/data/plugin/graphs/graph')
def graph(): def graph():
model_json = graph.load_model("") model_json = graph.load_model("")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册