update flask version
This commit is contained in:
parent
981ae3dc31
commit
f7ca3f266b
@ -339,7 +339,7 @@ def run_plugin():
|
|||||||
io.BytesIO(bgr_res),
|
io.BytesIO(bgr_res),
|
||||||
mimetype="image/gif",
|
mimetype="image/gif",
|
||||||
as_attachment=True,
|
as_attachment=True,
|
||||||
attachment_filename=form["filename"],
|
download_name=form["filename"],
|
||||||
)
|
)
|
||||||
if name == InteractiveSeg.name:
|
if name == InteractiveSeg.name:
|
||||||
return make_response(
|
return make_response(
|
||||||
@ -421,7 +421,7 @@ def switch_model():
|
|||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
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")
|
@app.route("/inputimage")
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
torch>=1.9.0
|
torch>=1.9.0
|
||||||
opencv-python
|
opencv-python
|
||||||
|
flask==2.2.3
|
||||||
flask_cors
|
flask_cors
|
||||||
Jinja2==2.11.3
|
|
||||||
flask==1.1.4
|
|
||||||
flaskwebgui==0.3.5
|
flaskwebgui==0.3.5
|
||||||
tqdm
|
|
||||||
pydantic
|
pydantic
|
||||||
rich
|
rich
|
||||||
loguru
|
loguru
|
||||||
pytest
|
|
||||||
yacs
|
yacs
|
||||||
markupsafe==2.0.1
|
|
||||||
diffusers[torch]==0.14.0
|
diffusers[torch]==0.14.0
|
||||||
transformers==4.27.4
|
transformers==4.27.4
|
||||||
gradio
|
gradio
|
||||||
|
Loading…
Reference in New Issue
Block a user