misobarisic / Diffusion-UI

Anything 4.5, Anything 3.0, Waifu Diffusion, Stable Diffusion 2.1, H Diffusion, Midjourney, Redshift
Apache License 2.0
64 stars 9 forks source link

Cannot add middleware after an application has started #14

Closed qa13683954882 closed 1 year ago

qa13683954882 commented 1 year ago

This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces Traceback (most recent call last): File "launch.py", line 361, in start() File "launch.py", line 356, in start webui.webui() File "/content/stable-diffusion-webui/webui.py", line 232, in webui app.add_middleware(GZipMiddleware, minimum_size=1000) File "/usr/local/lib/python3.8/dist-packages/starlette/applications.py", line 135, in add_middleware raise RuntimeError("Cannot add middleware after an application has started") RuntimeError: Cannot add middleware after an application has started Killing tunnel 127.0.0.1:7860 <> https://76dc6223-199c-46e3.gradio.live/

fastapi to 0.90 and it works fine.

Can you repair this problem?

misobarisic commented 1 year ago

Cannot reproduce. Did you change any of the settings or did you use the default?

misobarisic commented 1 year ago

Fixed in the latest commit