Refactor server.py

This commit is contained in:
cmdr2
2022-12-24 15:29:49 +05:30
parent e0b33a4feb
commit a4728190c0
4 changed files with 60 additions and 34 deletions

10
ui/main.py Normal file
View File

@ -0,0 +1,10 @@
from easydiffusion import model_manager, app, server
from easydiffusion.server import server_api # required for uvicorn
# Init the app
model_manager.init()
app.init()
server.init()
# start the browser ui
app.open_browser()