File size: 602 Bytes
1ccab24
 
 
 
 
 
 
 
 
 
 
 
 
 
1797543
1ccab24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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()