magic-animate icon indicating copy to clipboard operation
magic-animate copied to clipboard

How to launch the Gradio Demo accessible from internet?

Open saisaizhou opened this issue 1 year ago • 1 comments

My GPU is on the cloud server without browser. How to launch the Gradio Demo accessible from internet? currently the command “python3 -m demo.gradio_animate” start a server only accessible from localhost.

saisaizhou avatar Dec 11 '23 13:12 saisaizhou

I change the last line of "demo/gradio_animate.py" to demo.launch(server_name='0.0.0.0') and work.

I think it will be better to define a arg to the command "demo.gradio_animate" and allow user to transfer a server name.

saisaizhou avatar Dec 12 '23 01:12 saisaizhou