gpt4free/g4f/gui/run.py

13 lines
295 B
Python
Raw Normal View History

2024-04-06 17:27:28 +03:00
from .gui_parser import gui_parser
2023-10-12 04:35:11 +03:00
def run_gui_args(args):
from g4f.gui import run_gui
2023-10-10 01:46:14 +03:00
host = args.host
2023-10-12 04:35:11 +03:00
port = args.port
2023-10-10 01:46:14 +03:00
debug = args.debug
2023-10-12 04:35:11 +03:00
run_gui(host, port, debug)
if __name__ == "__main__":
parser = gui_parser()
args = parser.parse_args()
run_gui_args(args)