diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-06 12:23:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 12:23:58 +0200 |
commit | 5db96406dd142b9a84d459ab45a10465bdb61740 (patch) | |
tree | eb7d4844047d6bd8560aa4032a6f3cf9f5cb82ec /windows/main.py | |
parent | Update client.md (diff) | |
parent | Update README.md (diff) | |
download | gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.gz gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.bz2 gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.lz gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.xz gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.zst gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.zip |
Diffstat (limited to 'windows/main.py')
-rw-r--r-- | windows/main.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/windows/main.py b/windows/main.py new file mode 100644 index 00000000..11a3f902 --- /dev/null +++ b/windows/main.py @@ -0,0 +1,22 @@ +import ssl +import certifi +from functools import partial + +ssl.default_ca_certs = certifi.where() +ssl.create_default_context = partial( + ssl.create_default_context, + cafile=certifi.where() +) + +from g4f.gui.webview import run_webview +from g4f.gui.run import gui_parser +import g4f.debug +g4f.debug.version_check = False +g4f.debug.version = "0.2.8.0" + +if __name__ == "__main__": + parser = gui_parser() + args = parser.parse_args() + if args.debug: + g4f.debug.logging = True + run_webview(args.debug)
\ No newline at end of file |