Voxtral Realtime: font color option#17739
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17739
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 88 PendingAs of commit 9e0e842 with merge base 5a9b280 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
There was a problem hiding this comment.
Pull request overview
This PR adds a command-line flag to customize the output text color in the voxtral_realtime example. The implementation allows users to choose between green, red, or no color for the transcribed text output.
Changes:
- Added
--colorcommand-line flag that accepts "green", "red", or empty string (no color) - Replaced hardcoded
use_colorboolean with dynamicansi_colorpointer-based approach - Implemented input validation with clear error messages for invalid color values
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request adds support for colored output in the
voxtral_realtimeexample, allowing users to specify the color of the output text via a new command-line flag. The implementation replaces the previous hardcoded color logic with a more flexible approach and provides error handling for invalid color values.New feature: Output text color customization
--colorcommand-line flag tomain.cpp, allowing users to choose between green, red, or no color for output text.--colorflag, set the appropriate ANSI color code, and handle invalid values with an error message and exit.