mirror of https://github.com/xtekky/gpt4free
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
511 B
Python
18 lines
511 B
Python
from g4f.gui import run_gui
|
|
from argparse import ArgumentParser
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
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) |