mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix desktop mode being broken with new versions of flaskwebgui
This commit is contained in:
parent
1e9121c8d6
commit
b0697bc4ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user