Closed abidlabs closed 1 month ago
• | Name | Status | URL |
---|---|---|---|
Spaces | Spaces preview | ||
Website | Website preview | ||
:unicorn: | Changes |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/de1ee9ade13a340113cf73285f636a7e3a91236f/gradio-4.29.0-py3-none-any.whl
Install Gradio Python Client from this PR
pip install "gradio-client @ git+https://github.com/gradio-app/gradio@de1ee9ade13a340113cf73285f636a7e3a91236f#subdirectory=client/python"
Package | Version |
---|---|
gradio |
minor |
Adds
examples_per_page
togr.ChatInterface
and allowsclear_btn
ingr.Interface
to be hidden
Maintainers or the PR author can modify the PR title to modify this entry.
This is awesome; thanks for taking care of this feature request, @abidlabs ! 🙌 The examples_per_page
argument is now working for me for the ChatInterface component as well 🥳
Thanks @yvrjsharma for confirming!
A few small changes in this PR:
examples_per_page
togr.ChatInterface
, closes: https://github.com/gradio-app/gradio/issues/8233. My original plan had been to add support for providing an instance ofgr.Examples
but this does not really make sense since a user can't provide the correctfn
toexamples
since the example function is redefined internally. We also have the sameexamples_per_page
argument ingr.Interface
gr.Interface
to make sure that we have equivalent arguments ingr.ChatInterface
and made a few other small tweaks, such as allowingclear_btn
ingr.Interface
to be set toNone
hiding it, similar to how the buttons ingr.ChatInterface
. I believe there was an issue about this that we closedgr.ChatInterface
guide