summaryrefslogtreecommitdiffstats
path: root/g4f/gui/run.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-19 20:53:11 +0100
committerGitHub <noreply@github.com>2024-11-19 20:53:11 +0100
commitde4f374c5d01216cf62ba3594cff3762a1fd8159 (patch)
tree7dd083571e2396a627dfd468f21af8402cc39f2d /g4f/gui/run.py
parentMerge pull request #2382 from hlohaus/info (diff)
parentAdd --cookie-browsers argument to cli (diff)
downloadgpt4free-de4f374c5d01216cf62ba3594cff3762a1fd8159.tar
gpt4free-de4f374c5d01216cf62ba3594cff3762a1fd8159.tar.gz
gpt4free-de4f374c5d01216cf62ba3594cff3762a1fd8159.tar.bz2
gpt4free-de4f374c5d01216cf62ba3594cff3762a1fd8159.tar.lz
gpt4free-de4f374c5d01216cf62ba3594cff3762a1fd8159.tar.xz
gpt4free-de4f374c5d01216cf62ba3594cff3762a1fd8159.tar.zst
gpt4free-de4f374c5d01216cf62ba3594cff3762a1fd8159.zip
Diffstat (limited to 'g4f/gui/run.py')
-rw-r--r--g4f/gui/run.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/g4f/gui/run.py b/g4f/gui/run.py
index 9b1c527c..7acc5d9a 100644
--- a/g4f/gui/run.py
+++ b/g4f/gui/run.py
@@ -1,5 +1,6 @@
from .gui_parser import gui_parser
from ..cookies import read_cookie_files
+import g4f.cookies
import g4f.debug
def run_gui_args(args):
@@ -11,6 +12,7 @@ def run_gui_args(args):
host = args.host
port = args.port
debug = args.debug
+ g4f.cookies.browsers = [g4f.cookies[browser] for browser in args.cookie_browsers]
run_gui(host, port, debug)
if __name__ == "__main__":