diff --git a/lama_cleaner/server.py b/lama_cleaner/server.py index 5923da7..8e93424 100644 --- a/lama_cleaner/server.py +++ b/lama_cleaner/server.py @@ -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") diff --git a/requirements.txt b/requirements.txt index e19cf3b..deb8aa0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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