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")

View File

@ -1,16 +1,12 @@
torch>=1.9.0
opencv-python
flask==2.2.3
flask_cors
Jinja2==2.11.3
flask==1.1.4
flaskwebgui==0.3.5
tqdm
pydantic
rich
loguru
pytest
yacs
markupsafe==2.0.1
diffusers[torch]==0.14.0
transformers==4.27.4
gradio