github gradio-app/gradio @gradio/app@1.33.0

latest releases: @gradio/uploadbutton@0.6.13, @gradio/video@0.9.1, @gradio/upload@0.11.4...
2 months ago

Highlights

Setting File Upload Limits (#7909 2afca65)

We have added a max_file_size size parameter to launch() that limits to size of files uploaded to the server. This limit applies to each individual file. This parameter can be specified as a string or an integer (corresponding to the size in bytes).

The following code snippet sets a max file size of 5 megabytes.

import gradio as gr

demo = gr.Interface(lambda x: x, "image", "image")

demo.launch(max_file_size="5mb")
# or
demo.launch(max_file_size=5 * gr.FileSize.MB)

max_file_size_upload

Error states can now be cleared

When a component encounters an error, the error state shown in the UI can now be cleared by clicking on the x icon in the top right of the component. This applies to all types of errors, whether it's raised in the UI or the server.

error_modal_calculator

Thanks @freddyaboulton!

Features

Dependency updates

  • @gradio/atoms@0.7.1
  • @gradio/client@0.17.0
  • @gradio/audio@0.10.0
  • @gradio/label@0.3.0
  • @gradio/accordion@0.3.10
  • @gradio/annotatedimage@0.5.13
  • @gradio/button@0.2.32
  • @gradio/chatbot@0.9.0
  • @gradio/checkbox@0.3.0
  • @gradio/checkboxgroup@0.5.0
  • @gradio/code@0.6.0
  • @gradio/colorpicker@0.3.0
  • @gradio/column@0.1.1
  • @gradio/dataframe@0.7.0
  • @gradio/dataset@0.1.32
  • @gradio/downloadbutton@0.1.9
  • @gradio/dropdown@0.7.0
  • @gradio/fallback@0.3.0
  • @gradio/file@0.6.0
  • @gradio/fileexplorer@0.4.0
  • @gradio/form@0.1.15
  • @gradio/gallery@0.9.0
  • @gradio/group@0.1.1
  • @gradio/highlightedtext@0.5.0
  • @gradio/html@0.2.0
  • @gradio/image@0.10.0
  • @gradio/imageeditor@0.6.0
  • @gradio/json@0.2.0
  • @gradio/markdown@0.7.0
  • @gradio/model3d@0.9.0
  • @gradio/multimodaltextbox@0.3.0
  • @gradio/number@0.4.0
  • @gradio/paramviewer@0.4.9
  • @gradio/plot@0.4.0
  • @gradio/radio@0.5.0
  • @gradio/row@0.1.2
  • @gradio/simpledropdown@0.2.0
  • @gradio/simpleimage@0.4.0
  • @gradio/simpletextbox@0.2.0
  • @gradio/slider@0.4.0
  • @gradio/statustracker@0.5.0
  • @gradio/tabitem@0.2.7
  • @gradio/tabs@0.2.7
  • @gradio/textbox@0.5.0
  • @gradio/uploadbutton@0.6.0
  • @gradio/video@0.7.0
  • @gradio/upload@0.9.0
  • @gradio/utils@0.4.0
  • @gradio/box@0.1.15

Don't miss a new gradio release

NewReleases is sending notifications on new releases.