Hi,
The last version of gradio (2.7.0) comes with a display bug (launch this notebook diff_texts.ipynb 1 from gradio at HighlightedText 1).

image1827×921 52.3 KB

With the version 2.6.4 of gradio, there was no display bug:

image1815×787 39.6 KB

However, when you create an App with gradio, Hugging Face Spaces says that the gradio package comes pre-installed at version 2.2.6. I think this text needs an update. (cc @sgugger)

image1914×337 36.1 KB

More, I did try to create a new Spaces App with gradio. In the requirements.txt file, I added gradio==2.6.4 but it did not work.

image1166×550 29.4 KB

How can I install the gradio version of my choice for a Spaces App? Thank you.
Note: see this issue on gradio github about the version 2.7.0 and HighlightedText 2.