2023-10-08 08:31:46 -04:00
|
|
|
from g4f.gui import run_gui
|
2023-10-09 18:46:14 -04:00
|
|
|
from argparse import ArgumentParser
|
|
|
|
|
2023-10-08 08:31:46 -04:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2023-10-09 18:46:14 -04:00
|
|
|
|
|
|
|
parser = ArgumentParser(description='Run the GUI')
|
|
|
|
|
|
|
|
parser.add_argument('-host', type=str, default='0.0.0.0', help='hostname')
|
|
|
|
parser.add_argument('-port', type=int, default=80, help='port')
|
|
|
|
parser.add_argument('-debug', action='store_true', help='debug mode')
|
|
|
|
|
|
|
|
args = parser.parse_args()
|
|
|
|
port = args.port
|
|
|
|
host = args.host
|
|
|
|
debug = args.debug
|
|
|
|
|
|
|
|
run_gui(host, port, debug)
|