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()
2. New Chatbot Output 💬
gradio.outputs.Chatbot
got a makeover. Everything works the same the way, but it now looks more like message chat!
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
- Improve backend tests by @abidlabs in #493
- Svelte migration (WIP) by @aliabid94 in #448
- UI Design Improvements by @dawoodkhan82 in #473
- Dev requirements by @FarukOzderim in #497
- time series component (input) by @pngwn in #498
- Login frontend by @aliabid94 in #499
- Multi pkg by @pngwn in #515
- format frontend code with prettier by @pngwn in #516
- add vite by @pngwn in #517
- add typescript by @pngwn in #521
- add ci for ui by @pngwn in #524
- additional migration features by @aliabid94 in #520
- Build tweaks by @pngwn in #529
- add frontend build to ci as a smoke test by @pngwn in #530
- added support for markdown in description by @abidlabs in #533
- sketchpad fixes by @pngwn in #531
- Ak391/master by @abidlabs in #535
- Website svelte migration by @aliabid94 in #527
- sync folder ui with frontend by @pngwn in #539
- Audio Output Fix by @abidlabs in #540
- Circleci Installations Use Requirements by @FarukOzderim in #543
- Guides Section and Redesign Parts of the Website by @abidlabs in #490
- restore theme by @aliabid94 in #547
- updated PyPi version to 2.8.0a by @aliabid94 in #548
- type components with typescript by @pngwn in #545
- Disables google analytics if
analytics_enabled
is set ot False by @abidlabs in #553 - Update CONTRIBUTING.md by @abidlabs in #554
- version 2.8.0b by @aliabid94 in #549
- Fixing guides url by @aliabd in #555
- Typo in flagging guide by @aliabd in #556
- Fix global css [hotfix] by @aliabid94 in #557
- Fix website by @aliabid94 in #558
- Website vendor css fix [hotfix] by @aliabid94 in #561
- Upgrade black to version ~=22.0 by @LysandreJik in #560
- Chatbot hotfix by @aliabid94 in #564
- Update feature_request.md by @abidlabs in #566
- Adds support for https by @abidlabs in #570
- Accelerate Tests by @FarukOzderim in #551
- Guides fixes by @abidlabs in #565
- Format-The-Codebase by @FarukOzderim in #574
- Format-The-Codebase by @FarukOzderim in #594
- use
ui
for frontend by @pngwn in #589 - remove frontend directory by @pngwn in #598
- Fix
api_mode
by @xTayEx in #599 - formatting fixes by @abidlabs in #600
- Restoring Style on Guides by @aliabd in #595
- add unit tests by @pngwn in #602
- Tests Fix by @aliabid94 in #609
- Copy button on code blocks by @aliabd in #597
- Anchor tags on all headers by @aliabd in #601
- Fixing Website Reload by @aliabd in #610
- Small fixes by @aliabd in #611
- fixed mkdir in dockerfile by @aliabd in #612
- dawood/i18n by @dawoodkhan82 in #546
- Chatbot component by @dawoodkhan82 in #593
- fix assets link on gradio homepage [hotfix] by @aliabid94 in #614
- python format fix [hotfix] by @aliabid94 in #615
- Create Internationalization.md by @dawoodkhan82 in #619
- renamed internationalization to readme by @abidlabs in #620
- updated readme with example pull request by @abidlabs in #622
- Added Urdu (UR) support by @abidlabs in #621
- Corrections in Spanish support by @omarespejel in #625
- Create de.json by @dome272 in #623
- fixes PermissionError for non-writable flagging path by @kollmats in #617
- black fix [hotfix] by @aliabid94 in #628
- Dataframe fixes by @pngwn in #607
- More unit tests by @pngwn in #632
- Added hebrew json draft by @aribornstein in #634
- Added chinese lang by @wilile26811249 in #630
- Added French language by @pierrefdz in #629
- tweaks + tests for 18n by @pngwn in #633
- Some webcam + chatbot fixes by @dawoodkhan82 in #627
- Fixing related spaces and tags on guides template by @aliabd in #649
- Optional-Input-Clarification by @FarukOzderim in #603
- add korean support by @jaekookang in #644
- Added Arabic by @aliabd in #653
- fix: dark mode by @pngwn in #652
- Stable 2.8.0 release by @aliabid94 in #657
- Added Uzbek (UZ) support by @ochiqai in #658
- suppress warnings when sharing by @abidlabs in #660
- use relative basepath by @pngwn in #665
- ensure dataframe renders when headers are null by @pngwn in #666
- Move uz.json by @abidlabs in #662
- Add Ukrainian language support by @robinhad in #664
- update chatbot demo by @dawoodkhan82 in #661
- Add dutch language by @stephane-vanraes in #671
New Contributors
- @LysandreJik made their first contribution in #560
- @xTayEx made their first contribution in #599
- @omarespejel made their first contribution in #625
- @dome272 made their first contribution in #623
- @kollmats made their first contribution in #617
- @aribornstein made their first contribution in #634
- @wilile26811249 made their first contribution in #630
- @pierrefdz made their first contribution in #629
- @jaekookang made their first contribution in #644
- @ochiqai made their first contribution in #658
- @robinhad made their first contribution in #664
- @stephane-vanraes made their first contribution in #671
Full Changelog: v2.7.5...v2.8.1