File size: 464 Bytes
7e9f59c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import click
from click_help_colors import HelpColorsGroup


@click.group(
    cls=HelpColorsGroup,
    help_headers_color="yellow",
    help_options_color="green",
)
def main() -> None:
    """TTS Service CLI"""


@main.command()
@click.option("--share", is_flag=True, help="Share the service")
def serve(share: bool) -> None:
    """Start the TTS Service"""
    from tts_service.app import app
    app.launch(share=share)


if __name__ == "__main__":
    main()