mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-26 12:41:56 +03:00
0de9ca2004
Improve Contributors list in Readme
22 lines
514 B
Python
22 lines
514 B
Python
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) |