File size: 617 Bytes
cb2428f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (c) Alibaba, Inc. and its affiliates.
from dataclasses import dataclass


@dataclass
class WebUIArguments:
    """
    Args:
        server_name (str): The hostname or IP address to bind the web UI server to. Default is '0.0.0.0'.
        server_port (int): The port number to bind the web UI server to. Default is 7860.
        share (bool): A flag indicating whether to share the web UI publicly. Default is False.
        lang (str): The language setting for the web UI. Default is 'zh'.
    """
    server_name: str = '0.0.0.0'
    server_port: int = 7860
    share: bool = False
    lang: str = 'zh'