I got error when trying use notebook

#13196
by IvanKyoshiro - opened

The error I've got is always the same no matter what type of notebook codes I am using. Two days ago everything was fine, this happened only today. I never altered anything except just the model link I am going to use.

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

I am using this btw https://colab.research.google.com/github/misobarisic/Diffusion-UI/blob/main/Diffusion_UI.ipynb#scrollTo=Y4qjIc1XXKWw

I had a same problem, and resolved with this way.

pip install --upgrade fastapi==0.90

cf. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7714

I had a same problem, and resolved with this way.

pip install --upgrade fastapi==0.90

cf. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7714

Awesome, thank you so much! Was failing to launch a new copy of the SD WebUI (installed as every render is corrupted). Your comment fixed it for me! :)

Sign up or log in to comment