diff options
| author | yum <yum.food.vr@gmail.com> | 2025-05-30 13:32:36 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-05-30 13:34:23 -0700 |
| commit | 7fb9c575aea4d318e9c14b82174d1b323171b62b (patch) | |
| tree | 8f924a32def3bdc963be40e67879887cbac68f08 /ui/index.html | |
| parent | e1b3f638a1ea448de9691f69eb62ebf4c3944c9f (diff) | |
More stuff
- fix unicode output from python terminal
- fix cpu inference
- add filters
- add beam search params to UI
- DRY up config definition in UI
Diffstat (limited to 'ui/index.html')
| -rw-r--r-- | ui/index.html | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/ui/index.html b/ui/index.html index 90f78c1..97da3d2 100644 --- a/ui/index.html +++ b/ui/index.html @@ -10,9 +10,9 @@ <div class="container-fluid px-6 py-6 h-screen flex flex-col"> <div class="flex flex-1 gap-6 overflow-hidden"> <!-- Left Panel: Configuration Form --> - <div class="max-w-96 relative flex flex-col"> + <div class="max-w-96 relative flex flex-col overflow-hidden rounded-lg"> <!-- Loading Overlay --> - <div id="loading-overlay" class="absolute inset-0 bg-white bg-opacity-75 backdrop-blur-sm z-50 hidden flex items-center justify-center rounded-lg"> + <div id="loading-overlay" class="absolute inset-0 bg-white bg-opacity-75 backdrop-blur-sm z-50 hidden flex items-center justify-center"> <div class="text-center p-6"> <div class="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"></div> <p class="text-gray-700 font-medium"></p> @@ -126,7 +126,7 @@ <h2 class="section-title">Transcription Settings</h2> <div> <label for="user_prompt" class="form-label"> - Custom Prompt + Prompt <span class="text-gray-500 text-xs block mt-1" title="Whisper is given this prompt before transcribing. It helps guide the transcription style. For example, you could improve the spelling of your friends' names with: 'My friends' names are Saoirse, Azariah, and Caoimhe.'"> (Hover for details) @@ -136,6 +136,28 @@ class="form-input h-20 resize-none" placeholder="My friends' names are Saoirse, Azariah, and Caoimhe."></textarea> </div> + <div class="grid grid-cols-2 gap-4 mt-4"> + <div> + <label for="beam_size" class="form-label"> + Beam size + <span class="text-gray-500 text-xs block mt-1" + title="Number of beams for beam search. Higher values may improve accuracy but increase compute time."> + (Search width) + </span> + </label> + <input type="number" id="beam_size" min="1" max="20" value="5" class="form-input"> + </div> + <div> + <label for="best_of" class="form-label"> + Best of + <span class="text-gray-500 text-xs block mt-1" + title="Number of candidates to generate when sampling. The best one will be selected."> + (Sampling candidates) + </span> + </label> + <input type="number" id="best_of" min="1" max="20" value="5" class="form-input"> + </div> + </div> </section> <!-- Performance Settings --> @@ -166,6 +188,29 @@ </div> </section> + <!-- Text Filters --> + <section class="config-section"> + <h2 class="section-title">Text Filters</h2> + <div class="space-y-3"> + <label for="enable_lowercase_filter" class="checkbox-label"> + <input type="checkbox" id="enable_lowercase_filter" class="mr-2"> + <span class="checkbox-text">Convert to lowercase</span> + </label> + <label for="enable_uppercase_filter" class="checkbox-label"> + <input type="checkbox" id="enable_uppercase_filter" class="mr-2"> + <span class="checkbox-text">Convert to uppercase</span> + </label> + <label for="enable_profanity_filter" class="checkbox-label"> + <input type="checkbox" id="enable_profanity_filter" class="mr-2"> + <span class="checkbox-text">Filter profanity</span> + </label> + <label for="remove_trailing_period" class="checkbox-label"> + <input type="checkbox" id="remove_trailing_period" class="mr-2"> + <span class="checkbox-text">Remove trailing period</span> + </label> + </div> + </section> + <!-- Display Settings --> <section class="config-section"> <h2 class="section-title">Custom Chatbox Settings</h2> @@ -240,6 +285,7 @@ </div> </div> + <script src="config-schema.js"></script> <script src="renderer.js"></script> </body> </html> |
