Change8

gradio@6.12.0

📦 gradioView on GitHub →
11 features🐛 7 fixes🔧 2 symbols

Summary

This release introduces significant testing coverage across various components like Slider, Layout, Chatbot, Gallery, and DateTime, alongside the major feature of adding the `@gr.cache()` decorator for function caching. Several bug fixes address issues related to sharing errors, validation display, and filename handling.

✨ New Features

  • Added Slider Tests.
  • Gradio dependencies were vendored and pinned, utilizing the `exclude-newer` flag in CI.
  • Added Layout tests.
  • Added Chatbot Unit Tests.
  • Added Documentation Group for `gr.Cache`.
  • Copied `server` attribute for Space reloader during reloading.
  • Added Gallery Unit Tests.
  • Added comprehensive DateTime tests and fixed a whitespace preprocess bug.
  • Added Annotated image unit tests.
  • Added `@gr.cache()` decorator for caching deterministic functions, along with a lower-level `gr.Cache` using dependency injection.
  • Fixed validation logic to check `validation_response` instead of `validation_data`.

🐛 Bug Fixes

  • Improved error message when certificate write fails during sharing initialization.
  • Added Label tests.
  • Finished events are now popped from queue data structures.
  • Reduced `gradio` package size by restoring frontend settings.
  • Validation errors are now shown on `StatusTracker`-dependent components.
  • Preserved special characters in uploaded filenames.
  • Fixed ZeroGPU handling for `gr.Server`.

Affected Symbols