Skip to content

feat: add title to gradio Blocks for better browser tab identification#54

Open
ryan-steed-usa wants to merge 2 commits intopetermg:mainfrom
ryan-steed-usa:set-title
Open

feat: add title to gradio Blocks for better browser tab identification#54
ryan-steed-usa wants to merge 2 commits intopetermg:mainfrom
ryan-steed-usa:set-title

Conversation

@ryan-steed-usa
Copy link

  • Updated the gradio Blocks initialization in the main function to include a title parameter
  • Added "Chatterbox TTS Extended" as the title for the Gradio application
  • This change improves user experience by showing a meaningful title in browser tabs
  • The title appears in the browser's tab bar and bookmarks, making it easier to identify the application
  • No functional changes to the core application logic, only UI enhancement for better usability

- Updated the gradio Blocks initialization in the main function to include a title parameter
- Added "Chatterbox TTS Extended" as the title for the Gradio application
- This change improves user experience by showing a meaningful title in browser tabs
- The title appears in the browser's tab bar and bookmarks, making it easier to identify the application
- No functional changes to the core application logic, only UI enhancement for better usability
@ryan-steed-usa
Copy link
Author

Closes #55

@petermg
Copy link
Owner

petermg commented Nov 4, 2025

Can you give me a screenshot of what this looks like?

@ryan-steed-usa
Copy link
Author

Sure!

Window Title

image

Tab Title

image

- Extracted the application title "🎧 Chatterbox TTS Extended" into a dedicated variable `app_title` for improved code organization and maintainability
- Updated the gr.Blocks title parameter to use the new variable
- Modified the gr.Markdown heading to use f-string formatting with the app_title variable
- This change promotes DRY (Don't Repeat Yourself) principles by centralizing the title definition
- No functional changes, only refactoring for better code structure and future maintainability
@ryan-steed-usa
Copy link
Author

Here's a slightly better version:

image
image

If you have a UTF font preference for 🎧, we could use it to customize the favicon too (with favicon_path).

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

Comments