github gradio-app/gradio v2.8.1

latest releases: gradio@5.0.0-beta.7, website@0.39.0-beta.7, @gradio/nativeplot@0.4.0-beta.5...
2 years ago

Here's what's new in 2.8.1:

1. Markdown Support in description ✍️

You can now pass markdown directly inside the description parameter of Interface(). Here's an example, the following code creates the interface below it.

import gradio as gr

description="""
This text can be **bold** _italic_ `code` [linked](https://gradio.app) or contain an image: 
<img src="https://gradio.app/assets/img/logo.svg" style="display: inline-block; width: 100px;">
"""

gr.Interface(lambda x:x, "text", "text", description=description).launch()

Screen Shot 2022-02-18 at 9 04 23 PM

2. New Chatbot Output 💬

gradio.outputs.Chatbot got a makeover. Everything works the same the way, but it now looks more like message chat!

FL1zVufXMAMOSh_

3. New Dataframe Input 📂

gradio.inputs.Dataframe also got a makeover. This is what it looks like now:

dataframe.mov

4. Multiple Language Support 🌍

Gradio demos will now support internationalization out-of-the-box based on the viewer's browser language preference.

We already have support for 12 languages:

  • English en
  • Arabic ar
  • German de
  • Spanish es
  • French fr
  • Hebrew he
  • Korean ko
  • Dutch nl
  • Ukrainian uk
  • Urdu ur
  • Uzbek uz
  • Chinese (Taiwan) zh-tw

Please add support for your language here 🙏

5. Guides, Copy Buttons and Anchor Tags on gradio.app ⚡

We've added a few things to the gradio website, but the main addition was /guides.

Guides are deep dives into our features as well as end-to-end tutorials for building awesome ML demos. We already have 3 up and will continue writing more. Guides come with embedded demos, code blocks you can copy, headers you can link, as well as related spaces you can immediately check out.

Screen.Recording.2022-02-18.at.9.24.03.PM.mov

Anyone can contribute a guide here 🙏

What's Changed

New Contributors

Full Changelog: v2.7.5...v2.8.1

Don't miss a new gradio release

NewReleases is sending notifications on new releases.