zho-tts / app.py
stefantaubert's picture
update
1797543
raw
history blame
602 Bytes
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=True)
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()