import sys from functools import partial from zho_tts_app import initialize_logging, run_main from zho_tts_gr import build_interface def run() -> None: try: initialize_logging() except ValueError as ex: print("Logging not possible!") sys.exit(1) interface = build_interface(cache_examples=False) interface.queue() launch_method = partial( interface.launch, share=False, debug=True, inbrowser=True, quiet=False, show_api=False, ) exit_code = run_main(launch_method) sys.exit(exit_code) run()