Spaces:
Sleeping
Sleeping
File size: 600 Bytes
f7244fb cf910aa fcf3f99 f7244fb fcf3f99 e6e73a6 fcf3f99 f7244fb fcf3f99 |
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 en_tts_app import initialize_logging, run_main
from en_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()
|