mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-29 22:34:08 +03:00
Fix requirements in gui api
This commit is contained in:
parent
a466a86ee6
commit
a6ab2adaf0
15
main.py
Normal file
15
main.py
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user