Spaces:
Running
Running
File size: 17,133 Bytes
444762a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 | # Tiny Scribe UI Layout Review
## Current UI Structure (as of commit c9dbd58)
### Overall Layout
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π Tiny Scribe β
β AI-Powered Transcript Summarization β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββ
β LEFT COLUMN (1/3) β RIGHT COLUMN (2/3) β
β β β
β [Input & Settings] β [Output Display] β
ββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββ
```
---
## LEFT COLUMN (Settings & Input)
### 1. Global Settings Section
```
βββββββββββββββββββββββββββββββββββββββ
β π Global Settings β
βββββββββββββββββββββββββββββββββββββββ€
β β’ Output Language: [en / zh-TW] β
βββββββββββββββββββββββββββββββββββββββ
```
### 2. Input Content Section
```
βββββββββββββββββββββββββββββββββββββββ
β π₯ Input Content β
βββββββββββββββββββββββββββββββββββββββ€
β [Tabs] β
β ββ π Upload File β
β β ββ File upload component β
β ββ βοΈ Paste Text β
β ββ Textbox (10-20 lines) β
βββββββββββββββββββββββββββββββββββββββ
```
### 3. Mode Selection
```
βββββββββββββββββββββββββββββββββββββββ
β π― Summarization Mode β
βββββββββββββββββββββββββββββββββββββββ€
β β Standard Mode β
β β Advanced Mode (3-Model Pipeline) β
βββββββββββββββββββββββββββββββββββββββ
```
### 4A. Standard Mode Settings (visible when Standard selected)
```
βββββββββββββββββββββββββββββββββββββββ
β π Standard Mode β
β Single-model direct summarization β
βββββββββββββββββββββββββββββββββββββββ€
β [Nested Tabs for Model Selection] β
β ββ π€ Preset Models β
β β ββ Model Dropdown β
β β ββ Enable Reasoning Checkbox β
β ββ π§ Custom GGUF β
β ββ HF Hub Search β
β ββ File Dropdown β
β ββ Load Button β
β ββ Retry Button β
βββββββββββββββββββββββββββββββββββββββ€
β π₯οΈ Hardware Configuration β
β ββ CPU Thread Preset Dropdown β
β ββ Custom Thread Count Slider β
βββββββββββββββββββββββββββββββββββββββ€
β ποΈ Inference Parameters β
β ββ Temperature (0.0-2.0) β
β ββ Max Output Tokens (256-4096) β
β ββ Top P (0.0-1.0) β
β ββ Top K (0-100) β
βββββββββββββββββββββββββββββββββββββββ
```
### 4B. Advanced Mode Settings (visible when Advanced selected)
```
βββββββββββββββββββββββββββββββββββββββ
β π§ Advanced Mode (3-Model Pipeline) β
β Extraction β Deduplication β Synth β
βββββββββββββββββββββββββββββββββββββββ€
β π Stage 1: Extraction β
β ββ Extraction Model Dropdown β
β ββ Context Window Slider (2K-8K) β
β ββ Window Overlap Slider (1-5) β
β ββ Enable Reasoning Checkbox β
β ββ [Accordion] Model Details β
βββββββββββββββββββββββββββββββββββββββ€
β 𧬠Stage 2: Deduplication β
β ββ Embedding Model Dropdown β
β ββ Similarity Threshold (0.7-0.95) β
β ββ [Accordion] Model Details β
βββββββββββββββββββββββββββββββββββββββ€
β β¨ Stage 3: Synthesis β
β ββ Synthesis Model Dropdown β
β ββ Enable Reasoning Checkbox β
β ββ Max Output Tokens (512-4096) β
β ββ Temperature (0.0-2.0) β
β ββ Top P (0.0-1.0) β
β ββ Top K (0-100) β
β ββ [Accordion] Model Details β
βββββββββββββββββββββββββββββββββββββββ€
β βοΈ Global Settings β
β ββ CPU Thread Preset Dropdown β
β ββ Custom Thread Count Slider β
β ββ Enable Trace Logging Checkbox β
βββββββββββββββββββββββββββββββββββββββ
```
### 5. Debug Tools (collapsed by default)
```
βββββββββββββββββββββββββββββββββββββββ
β π Debug Tools [Accordion] β
β ββ System Prompt (Read-Only) β
βββββββββββββββββββββββββββββββββββββββ
```
### 6. Submit Button
```
βββββββββββββββββββββββββββββββββββββββ
β β¨ Generate Summary β
βββββββββββββββββββββββββββββββββββββββ
```
---
## RIGHT COLUMN (Output Display)
### 1. Model Information Panel
```
βββββββββββββββββββββββββββββββββββββββ
β π Model Information β
βββββββββββββββββββββββββββββββββββββββ€
β Standard Mode: β
β β’ Shows 1 model spec β
β β
β Advanced Mode: β
β β’ Extraction Model specs β
β β’ Embedding Model specs β
β β’ Synthesis Model specs β
βββββββββββββββββββββββββββββββββββββββ
```
### 2. Model Thinking Process
```
βββββββββββββββββββββββββββββββββββββββ
β π§ Model Thinking Process β
βββββββββββββββββββββββββββββββββββββββ€
β (Textbox - 12-20 lines) β
β Real-time reasoning display β
β β
β [π Copy Thinking] β
βββββββββββββββββββββββββββββββββββββββ
```
### 3. Final Summary
```
βββββββββββββββββββββββββββββββββββββββ
β π Final Summary β
βββββββββββββββββββββββββββββββββββββββ€
β (Markdown output) β
β Summary content appears here β
β β
β (Completion metrics if Advanced) β
β β
β [π Copy Summary] [β¬οΈ Download] β
βββββββββββββββββββββββββββββββββββββββ
```
---
## UI Statistics
**Total UI Code:** 998 lines
**Components Used:**
- Groups: 7
- Accordions: 4
- Tabs: 2
- Rows: 4
- Columns: 2
- Buttons: 6
- Dropdowns: 8
- Sliders: 13
- Checkboxes: 4
- Radio: 1
- Textboxes: 4
- Markdown: 6
---
## Strengths β
1. **Clear Two-Column Layout**
- Left: Input & Settings
- Right: Output & Results
- Good separation of concerns
2. **Single Mode Selector**
- Radio button to switch between Standard/Advanced
- No redundant tab system
- Clean mode switching
3. **Stage-Based Advanced Mode**
- Clear pipeline flow: Extraction β Dedup β Synthesis
- Each stage has dedicated section
- Logical grouping of parameters
4. **Unified Model Information**
- Single panel in right column
- Shows 1 model (Standard) or 3 models (Advanced)
- Updates dynamically
5. **Single Global Language Selector**
- No duplicates
- Applies to both modes
- In Global Settings section
6. **Mode-Specific Parameters**
- Standard Mode: Simple inference params
- Advanced Mode: Stage-specific params + global settings
- No confusion about which params apply where
---
## Potential Issues β οΈ
### 1. **Nested Tabs in Standard Mode**
**Current:**
```
Standard Mode Group
ββ Tabs (model_tabs)
ββ Preset Models
ββ Custom GGUF
```
**Issue:** Extra nesting level that might not be necessary
**Suggestion:** Consider using an Accordion or Radio button for model source selection instead of nested tabs
---
### 2. **Inconsistent "Global Settings" Naming**
**Current:**
- Section 1: "π Global Settings" (language selector)
- Advanced Mode: "βοΈ Global Settings" (hardware config)
**Issue:** Two sections with same semantic name but different content
**Suggestion:**
- Rename first one to "Output Settings" or "Language Settings"
- Or consolidate into one global section at top
---
### 3. **Hardware Configuration Duplication**
**Current:**
- Standard Mode has its own hardware config
- Advanced Mode has its own hardware config (in "Global Settings" subsection)
**Issue:** Same control duplicated across modes
**Suggestion:** Move to a true global section that applies to both modes (could be above mode selector)
---
### 4. **Long Left Column in Advanced Mode**
**Current Structure:**
- Stage 1: ~40 lines
- Stage 2: ~25 lines
- Stage 3: ~60 lines
- Global Settings: ~30 lines
- Total: ~155 lines of settings
**Issue:** Lots of scrolling required in Advanced Mode
**Suggestion:** Consider collapsing stages into accordions or using a more compact layout
---
### 5. **Model Details Accordions in Advanced Mode**
**Current:**
- Each stage has a collapsed "Model Details" accordion
- 3 separate accordions
**Issue:** Redundant with unified Model Information panel in right column
**Suggestion:** Remove individual accordions and rely only on unified panel in right column
---
### 6. **Missing Visual Feedback for Mode Selection**
**Current:**
- Mode radio button at top
- Settings groups show/hide based on selection
**Issue:** No clear visual indicator of which mode is active besides radio button
**Suggestion:** Add visual styling/badge to mode groups (e.g., highlighted border when active)
---
### 7. **Debug Tools Position**
**Current:**
- Located between Submit button and Output column
- In left column after all settings
**Issue:** Might be better positioned elsewhere or combined with other debug features
**Suggestion:** Move to a footer section or integrate with completion info
---
### 8. **Completion Metrics Display**
**Current:**
- Shows inside "Final Summary" section
- Below the summary text
**Issue:** Not clearly separated from summary content
**Suggestion:** Create a dedicated "Generation Metrics" section or improve visual separation
---
### 9. **Input Content Position**
**Current:**
- Near top of left column, before mode selection
**Issue:** Users might want to select mode first, then provide input
**Suggestion:** Consider moving Input Content below Mode Selection
---
### 10. **Multiple Accordions in Advanced Mode**
**Current:**
- 3 "Model Details" accordions (one per stage)
- 1 Debug Tools accordion
**Issue:** Too many collapsible sections might hide important information
**Suggestion:** Reduce accordion usage or make certain ones open by default
---
## Recommended Improvements π―
### Priority 1 (High Impact, Low Effort)
1. **Remove Stage-Specific Model Details Accordions**
- Rely only on unified Model Information panel
- Reduces clutter in left column
- Eliminates redundancy
2. **Rename Conflicting "Global Settings"**
- First section β "Output Settings"
- Advanced Mode section β "Pipeline Settings"
- Improves clarity
3. **Add Visual Mode Indicator**
- Highlight active mode group with colored border
- Add badge showing "ACTIVE" state
- Better visual feedback
### Priority 2 (Medium Impact, Medium Effort)
4. **Consolidate Hardware Configuration**
- Move to single global section above mode selector
- Applies to both Standard and Advanced modes
- Reduces duplication
5. **Simplify Standard Mode Model Selection**
- Replace nested tabs with Radio buttons or Dropdown
- "Preset Models" vs "Custom GGUF" selection
- Reduces UI nesting
6. **Improve Completion Metrics Display**
- Separate section in Final Summary group
- Clear visual separator (border/background)
- More prominent typography
### Priority 3 (Lower Impact, Higher Effort)
7. **Optimize Advanced Mode Layout**
- Consider using collapsible accordions for stages
- Or use a stepper/wizard UI for pipeline stages
- Reduce vertical scrolling
8. **Reorganize Input Position**
- Move Input Content below Mode Selection
- Logical flow: Mode β Settings β Input β Generate
- More intuitive workflow
9. **Consolidate Debug Features**
- Move Debug Tools to footer or separate tab
- Combine with other developer features
- Keep main UI focused on user workflow
---
## Proposed Optimal Layout
### Left Column (Top to Bottom)
```
1. Output Settings (language selector)
2. Hardware Configuration (global - applies to both modes)
3. Mode Selection (radio button)
4. Input Content (file upload / paste text tabs)
5. [Mode-Specific Settings - show/hide based on mode]
- Standard Mode: Model Selection (radio/dropdown) + Inference Params
- Advanced Mode: Stage 1, 2, 3 sections
6. Submit Button
```
### Right Column (Top to Bottom)
```
1. Model Information (unified panel)
2. Model Thinking Process
3. Final Summary
4. Generation Metrics (separate visual section)
5. Action Buttons (Copy, Download)
```
### Footer
```
Debug Tools (collapsed) + Version Info
```
---
## Summary
**Overall Assessment:** βββββ (4/5)
The UI is well-structured with clear separation between input/settings and output. The recent refactoring improved consistency by:
- Unifying model information display
- Removing duplicate language selectors
- Organizing Advanced Mode by pipeline stages
**Main Strengths:**
- Clean two-column layout
- Logical stage-based organization for Advanced Mode
- Good use of show/hide for mode switching
**Main Weaknesses:**
- Some redundancy (hardware config, model details accordions)
- Naming conflicts ("Global Settings" used twice)
- Could reduce nesting in Standard Mode
- Long vertical scroll in Advanced Mode
**Recommended Next Steps:**
1. Remove redundant Model Details accordions in Advanced Mode
2. Consolidate hardware configuration into one global section
3. Rename conflicting "Global Settings" sections
4. Add visual feedback for active mode
5. Consider simplifying Standard Mode model selection UI
|