Skip to content
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

chore(docker): Configure TensorBoard port through .env file #2397

Merged
merged 2 commits into from
Apr 26, 2024
Merged

chore(docker): Configure TensorBoard port through .env file #2397

merged 2 commits into from
Apr 26, 2024

Conversation

jim60105
Copy link
Contributor

Feature discussed here: #2344 (comment)

Also fix a issue that webbrowser.open() is not working in headless environment like docker.
Gradio has a built-in feature on Button and this works.

- Added a new `.env` file to specify the TensorBoard port
- Updated the `docker-compose.yaml` file to import the TensorBoard port from the `.env` file
- Adjusted the tensorboard service in `docker-compose.yaml` to make the port configurable via an environment variable
- Added a comment in `docker-compose.yaml` to encourage changing the port in the `.env` file instead of the docker-compose file itself

Signed-off-by: 陳鈞 <[email protected]>
…ment

Use the gradio builtin feature instead.

- In `class_tensorboard.py`, the "Open tensorboard" button now directly links to the tensorboard URL instead of calling the `open_tensorboard_url` function when clicked.

Signed-off-by: 陳鈞 <[email protected]>
@bmaltais bmaltais merged commit 074de82 into bmaltais:dev Apr 26, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants