mirror of
https://github.com/KwaiVGI/LivePortrait.git
synced 2024-12-22 20:42:38 +00:00
chore: change default server_name
This commit is contained in:
parent
9cfb0e5ce6
commit
815ca54428
@ -7,6 +7,7 @@ All configs for user
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
import tyro
|
import tyro
|
||||||
from typing_extensions import Annotated
|
from typing_extensions import Annotated
|
||||||
|
from typing import Optional
|
||||||
from .base_config import PrintableConfig, make_abs_path
|
from .base_config import PrintableConfig, make_abs_path
|
||||||
|
|
||||||
|
|
||||||
@ -43,4 +44,4 @@ class ArgumentConfig(PrintableConfig):
|
|||||||
########## gradio arguments ##########
|
########## gradio arguments ##########
|
||||||
server_port: Annotated[int, tyro.conf.arg(aliases=["-p"])] = 8890 # port for gradio server
|
server_port: Annotated[int, tyro.conf.arg(aliases=["-p"])] = 8890 # port for gradio server
|
||||||
share: bool = False # whether to share the server to public
|
share: bool = False # whether to share the server to public
|
||||||
server_name: str = "0.0.0.0" # server name
|
server_name: Optional[str] = "127.0.0.1" # set the local server name, "0.0.0.0" to broadcast all
|
||||||
|
@ -12,11 +12,11 @@ import cv2
|
|||||||
|
|
||||||
from .rprint import rlog as log
|
from .rprint import rlog as log
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
import ffmpeg
|
# import ffmpeg
|
||||||
except ImportError as e:
|
# except ImportError as e:
|
||||||
log(f'Try to install ffmpeg by: pip install ffmpeg-python==0.2.0', style='bold red')
|
# log(f'Try to install ffmpeg by: pip install ffmpeg-python==0.2.0', style='bold red')
|
||||||
raise(e)
|
# raise(e)
|
||||||
|
|
||||||
from rich.progress import track
|
from rich.progress import track
|
||||||
from .helper import prefix
|
from .helper import prefix
|
||||||
|
Loading…
Reference in New Issue
Block a user