From a6ab2adaf02b92fda6416b8ff094083b2edd75d3 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 19 Mar 2024 20:35:35 +0100 Subject: Fix requirements in gui api --- main.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main.py 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 -- cgit v1.2.3