Fix desktop mode being broken with new versions of flaskwebgui

This commit is contained in:
blessedcoolant 2022-11-26 22:09:30 +13:00
parent 1e9121c8d6
commit b0697bc4ff

View File

@ -202,22 +202,16 @@ class InvokeAIWebServer:
if args.gui:
print(">> Launching Invoke AI GUI")
close_server_on_exit = True
if args.web_develop:
close_server_on_exit = False
try:
from flaskwebgui import FlaskUI
FlaskUI(
app=self.app,
socketio=self.socketio,
start_server="flask-socketio",
host=self.host,
port=self.port,
server="flask_socketio",
width=1600,
height=1000,
idle_interval=10,
close_server_on_exit=close_server_on_exit,
port=self.port
).run()
except KeyboardInterrupt:
import sys