Spaces:
Sleeping
Sleeping
Fix gallery selection when clicking "Try Another Example"
Browse filesWhen 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>
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 |
|