-
Couldn't load subscription status.
- Fork 2.1k
adding launch parameter to allow remote access to containerized OWL #401
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @didier-durand , from gradio's documentation https://www.gradio.app/guides/environment-variables the port and server could be set by setting the environment variables, I think it's better for us follow gradio's native setting, WDYT?
|
Hi, I see a few reasons why introducing OWL_SERVER_NAME is better than relying on GRADIO_SERVER_NAME documented at https://www.gradio.app/guides/environment-variables:
So, for 1/ sake of homogeneity in (upcoming) Owl launch parameters when containerized and 2/ fine-grained control of launch mechanism, I think that creation of OWL_SERVER_NAME makes sense. |
|
@Wendong-Fan |
| "favicon_path": "../assets/owl-favicon.ico" | ||
| } | ||
| if os.getenv("OWL_SERVER_NAME") is not None: | ||
| launch_kwargs["server_name"] = os.getenv("OWL_SERVER_NAME") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OWL_SERVER_NAME should be validated to confirm it is a valid hostname or IP address
…ge (camel-ai#401) * Update README.md to improve structure and clarity. Removed redundant section on Graph Service and added a new section for REST Service. Included a tip about the MCP server for enhanced user guidance. * Add GitHub stars badge to README.md for enhanced visibility
Hi,
In multiple use cases, when running on the cloud, OWL needs to allow remote access to Gradio UI. The
server_nameparameter of app launch() defines which ip adresses have access to the OWL ui.default value
127.0.0.1(aka localhost) which is default doesn't allow for remote access (local host is not routable). So, we define a new ENV var OWL_SERVER_NAME (easy to define at container start) that allows to replace the default by new one.In our use case, we use "0.0.0.0" (all ip adresses) as value for ip addresses when starting our OWL container. It works just fine.