Oysiyl Claude Sonnet 4.5 commited on
Commit
aa46d4a
·
1 Parent(s): 6c37137

Fix gallery selection when clicking "Try Another Example"

Browse files

When user clicks "Try Another Example" button, the gallery now shows
all images unselected (selected_index=None) for a clean browsing experience.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3394,7 +3394,7 @@ if __name__ == "__main__" and not os.environ.get("QR_TESTING_MODE"):
3394
  gr.update(visible=False), # Hide output image
3395
  "", # Clear error message
3396
  gr.update(visible=False), # Hide settings accordion
3397
- gr.update(visible=True), # Show gallery
3398
  gr.update(visible=False), # Hide this button
3399
  )
3400
 
 
3394
  gr.update(visible=False), # Hide output image
3395
  "", # Clear error message
3396
  gr.update(visible=False), # Hide settings accordion
3397
+ gr.update(visible=True, selected_index=None), # Show gallery with no selection
3398
  gr.update(visible=False), # Hide this button
3399
  )
3400