summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-06 16:25:11 +0200
committerGitHub <noreply@github.com>2024-04-06 16:25:11 +0200
commit38c429ec3831a6ebec766c1cb579d0e3f34ab5b5 (patch)
treed7b53b3e3b8891d9d4191d7675efe03afc298f83
parentUpdate __init__.py (diff)
downloadgpt4free-38c429ec3831a6ebec766c1cb579d0e3f34ab5b5.tar
gpt4free-38c429ec3831a6ebec766c1cb579d0e3f34ab5b5.tar.gz
gpt4free-38c429ec3831a6ebec766c1cb579d0e3f34ab5b5.tar.bz2
gpt4free-38c429ec3831a6ebec766c1cb579d0e3f34ab5b5.tar.lz
gpt4free-38c429ec3831a6ebec766c1cb579d0e3f34ab5b5.tar.xz
gpt4free-38c429ec3831a6ebec766c1cb579d0e3f34ab5b5.tar.zst
gpt4free-38c429ec3831a6ebec766c1cb579d0e3f34ab5b5.zip
-rw-r--r--g4f/gui/gui_parser.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/g4f/gui/gui_parser.py b/g4f/gui/gui_parser.py
new file mode 100644
index 00000000..ad458f5c
--- /dev/null
+++ b/g4f/gui/gui_parser.py
@@ -0,0 +1,8 @@
+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 \ No newline at end of file