summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-03-19 20:36:28 +0100
committerGitHub <noreply@github.com>2024-03-19 20:36:28 +0100
commit71d907402f508674ab9af8b1ccc1ae36cdec50d1 (patch)
tree398a993e2b59b8b7e23e2693052eba11605c9ad7 /main.py
parentMerge pull request #1727 from hlohaus/giga (diff)
parentFix requirements in gui api (diff)
downloadgpt4free-71d907402f508674ab9af8b1ccc1ae36cdec50d1.tar
gpt4free-71d907402f508674ab9af8b1ccc1ae36cdec50d1.tar.gz
gpt4free-71d907402f508674ab9af8b1ccc1ae36cdec50d1.tar.bz2
gpt4free-71d907402f508674ab9af8b1ccc1ae36cdec50d1.tar.lz
gpt4free-71d907402f508674ab9af8b1ccc1ae36cdec50d1.tar.xz
gpt4free-71d907402f508674ab9af8b1ccc1ae36cdec50d1.tar.zst
gpt4free-71d907402f508674ab9af8b1ccc1ae36cdec50d1.zip
Diffstat (limited to 'main.py')
-rw-r--r--main.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 00000000..5b2cc4c2
--- /dev/null
+++ b/main.py
@@ -0,0 +1,15 @@
+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
+import g4f.debug
+g4f.debug.version_check = False
+
+run_webview(True); \ No newline at end of file