update flask version

This commit is contained in:
Qing
2023-04-16 13:45:34 +08:00
parent 981ae3dc31
commit f7ca3f266b
2 changed files with 3 additions and 7 deletions

View File

@@ -339,7 +339,7 @@ def run_plugin():
io.BytesIO(bgr_res),
mimetype="image/gif",
as_attachment=True,
attachment_filename=form["filename"],
download_name=form["filename"],
)
if name == InteractiveSeg.name:
return make_response(
@@ -421,7 +421,7 @@ def switch_model():
@app.route("/")
def index():
return send_file(os.path.join(BUILD_DIR, "index.html"), cache_timeout=0)
return send_file(os.path.join(BUILD_DIR, "index.html"))
@app.route("/inputimage")