File size: 563 Bytes
2a28594
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from gradio import Blocks

from chattr import SERVER_PORT, SERVER_URL
from chattr.gui import app_block


def main() -> None:
    """
    Initializes and launches the Gradio-based Chattr application server with API access, monitoring, and PWA support enabled.
    """
    app: Blocks = app_block()
    app.queue(api_open=True).launch(
        server_name=SERVER_URL,
        server_port=SERVER_PORT,
        debug=True,
        show_api=True,
        enable_monitoring=True,
        show_error=True,
        pwa=True,
    )


if __name__ == "__main__":
    main()