gpt4free/g4f/gui/gui_parser.py

8 lines
350 B
Python
Raw Normal View History

2024-04-06 14:25:11 +00:00
from argparse import ArgumentParser
def gui_parser():
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=8080, help="port")
parser.add_argument("-debug", action="store_true", help="debug mode")
return parser