KwaiVGI / LivePortrait

Bring portraits to life!
https://liveportrait.github.io
Other
12.1k stars 1.27k forks source link

Error When Using the --share Flag #256

Closed talgreen1 closed 2 months ago

talgreen1 commented 2 months ago

Hello,

I'm trying to access the web UI from another machine on the network.

To do this, I'm using the --share flag in the 'run_windows.bat' file like this:

start /B python app.py --share

However, I'm encountering the following error:

OSError: Cannot find empty port in range: 13564-13564. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the server_port parameter to launch().

Can anyone help me figure out what I'm missing?

Thanks, Tal.

wangbinxu commented 2 months ago

--share --server-name=0.0.0.0

cleardusk commented 2 months ago

@talgreen1 You can follow @wangbinxu 's advice, e.g.,

start /B python app.py --share --server_name="0.0.0.0"
talgreen1 commented 2 months ago

Thank you very much. It worked.