Skip to content
Discussion options

You must be logged in to vote

In server.py

# Launch the interface
shared.gradio['interface'].queue()
if shared.args.listen:
    shared.gradio['interface'].launch(prevent_thread_lock=True, share=shared.args.share, server_name='0.0.0.0',
                                      server_port=shared.args.listen_port, inbrowser=shared.args.auto_launch,
                                      auth=auth)
else:
    shared.gradio['interface'].launch(prevent_thread_lock=True, share=shared.args.share, server_name='0.0.0.0',
                                      server_port=shared.args.listen_port, inbrowser=shared.args.auto_launch,
                                      auth=auth)

Whatever you change 0.0.0.0 to it will run on it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vicitooo
Comment options

@adavad
Comment options

Answer selected by vicitooo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants