P2 Bug Report: Third Example Not Filling Chat Box
Status
- Date: 2025-11-29
- Priority: P2 (UX issue)
- Component:
src/app.py- Gradio examples - Resolution: FIXED in commit
2ea01fd
Symptoms
When clicking the third example in the Gradio UI:
- Example 1 (female libido): β Fills chat box correctly
- Example 2 (ED alternatives): β Fills chat box correctly
- Example 3 (HSDD testosterone): β Does NOT fill chat box
User Experience
User clicks example β nothing happens β confusion
Root Cause Hypothesis
The third example contains parentheses and an abbreviation:
"Testosterone therapy for HSDD (Hypoactive Sexual Desire Disorder)?"
Possible causes:
- Parentheses - Gradio may have parsing issues with
(...)in example text - Text length - When expanded, this is the longest example
- Special characters - The combination of abbreviation + parenthetical may confuse Gradio's example caching
The Fix
Simplify the example text - expand the abbreviation and remove parentheses:
# Before (broken)
"Testosterone therapy for HSDD (Hypoactive Sexual Desire Disorder)?"
# After (fixed)
"Testosterone therapy for Hypoactive Sexual Desire Disorder?"
This:
- Removes problematic parentheses
- Makes the text more readable (no cut-off abbreviation)
- Users don't need to know what HSDD stands for
Test Plan
- Change example text in
src/app.py - Deploy to HuggingFace Space
- Verify all 3 examples fill chat box correctly
-
make checkpasses
Related
- Gradio ChatInterface example caching behavior
- Similar to P0 example caching crash (but different manifestation)