Skip to content

Webui deployment so that it's public #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
varunsharma6956 opened this issue Apr 15, 2025 · 1 comment
Open

Webui deployment so that it's public #535

varunsharma6956 opened this issue Apr 15, 2025 · 1 comment

Comments

@varunsharma6956
Copy link

Currently the ai agents through webui built on gradio is running on browser for automation with the use of browse-use library, but how to make it public the localhost:7788 so that anyone when open it can access it freely, please help me on this issue, so that do it also and how to do it

@warmshao
Copy link
Collaborator

To make your Gradio-based web UI publicly accessible, you have a couple of options:

  1. Use share=True in Gradio:

    • This is the simplest method. When launching your Gradio app, set share=True to automatically generate a public URL. This URL can be shared with others to access your app.
    demo.launch(server_name="127.0.0.1", server_port=7788, share=True)
  2. Use Ngrok:

    • If you prefer using Ngrok, you can expose your local server to the internet by running the command:
    ngrok http 7788
    • This will provide you with a public URL that forwards requests to your local server running on port 7788.
  3. Deploy on a Cloud Platform:

    • Consider deploying your app on platforms like Heroku, AWS, or Google Cloud for a more permanent solution.

These methods will help you make your Gradio app accessible to others. Choose the one that best fits your needs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants