fix --gui
This commit is contained in:
parent
c283b05b8e
commit
b6a5650a96
@ -183,6 +183,7 @@ def main(args):
|
|||||||
if args.gui:
|
if args.gui:
|
||||||
app_width, app_height = args.gui_size
|
app_width, app_height = args.gui_size
|
||||||
from flaskwebgui import FlaskUI
|
from flaskwebgui import FlaskUI
|
||||||
return FlaskUI(app, width=app_width, height=app_height, host=args.host, port=args.port)
|
ui = FlaskUI(app, width=app_width, height=app_height, host=args.host, port=args.port)
|
||||||
|
ui.run()
|
||||||
else:
|
else:
|
||||||
app.run(host=args.host, port=args.port, debug=args.debug)
|
app.run(host=args.host, port=args.port, debug=args.debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user