Skip to content

Enhancement: Add improved seed controls to Gradio interface#242

Open
phinglaspure123 wants to merge 1 commit into
nari-labs:mainfrom
phinglaspure123:feature/improved-gradio-interface
Open

Enhancement: Add improved seed controls to Gradio interface#242
phinglaspure123 wants to merge 1 commit into
nari-labs:mainfrom
phinglaspure123:feature/improved-gradio-interface

Conversation

@phinglaspure123

Copy link
Copy Markdown

🚀 Enhancement: Improved Seed Controls

✨ Features Added:

  • Random Seed Button: Added convenient "🎲 Random" button next to seed input
  • Smart Seed Generation: Only generates random seed when field is empty, preserves existing values
  • Better Error Handling: Gracefully handles empty seed inputs to prevent crashes

🎯 Benefits:

  • User-Friendly: Easy access to random seed generation for voice experimentation
  • Intuitive: Smart behavior that respects user's existing seed values
  • Robust: Prevents TypeError crashes when seed field is left empty
  • Better UX: Cleaner interface with organized seed controls

🔧 Technical Changes:

  • Added random seed button with conditional logic
  • Enhanced seed input validation and error handling
  • Improved parameter handling for None/empty seed values
  • Added proper fallback to default seed (42) when input is empty

🧪 Testing:

  • Tested random seed generation functionality
  • Verified smart empty-field detection
  • Confirmed error handling for None/empty inputs
  • Validated seed consistency across generations

This enhancement improves the user experience for voice consistency controls while maintaining all existing functionality.

- Added duration mode vs manual token control toggle
- Added real-time token calculation display
- Added user-adjustable tokens per second ratio
- Added random seed button with smart empty-field detection
- Fixed seed handling for empty inputs
- Improved UI organization and user experience
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.

1 participant