main.py 431 B

12345678910111213141516171819
  1. import ssl
  2. import certifi
  3. from functools import partial
  4. ssl.default_ca_certs = certifi.where()
  5. ssl.create_default_context = partial(
  6. ssl.create_default_context,
  7. cafile=certifi.where()
  8. )
  9. from g4f.gui.run import run_gui_args, gui_parser
  10. import g4f.debug
  11. g4f.debug.version_check = False
  12. g4f.debug.version = "0.3.1.7"
  13. if __name__ == "__main__":
  14. parser = gui_parser()
  15. args = parser.parse_args()
  16. run_gui_args(args)