1086 Commits

Author SHA1 Message Date
Abubakar Abid
3465fdb190
Format backend with latest ruff (#10470)
* format

* add changeset

* more ruff

* changes

* update

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-30 14:13:16 -08:00
Hannah
ca7c47e5e5
Add copy button to dataframe toolbar (#10461)
* add copy button to df toolbar

* add changeset

* add story

* add show_copy_button param

* copy data with separators and headers

* fix test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-30 17:12:34 +00:00
Freddy Boulton
324383fb81
Fix typecheck error due to huggingface_hub update (#10460)
* fix typecheck

* add changeset

* fix test

* fix

* fix

* fix

* matplotlib

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-29 11:29:36 -08:00
Abubakar Abid
b7a7e59094
Support presigned URLs with gr.Video, gr.Model3D, and other components (#10406)
* thanks cursor

* add changeset

* add changeset

* add changeset

* changes

* changes

* video

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-23 08:35:53 -08:00
Freddy Boulton
43e7cce2bd
Fix ImageEditor Size Issues (#10357)
* Fix

* Add test

* Fix

* Format

* add changeset

* rm for now

* Revert "rm for now"

This reverts commit 3cfbe3c577e365d9d14553e9a109bbe09f8170ac.

* rm for now

* tests

* fix tests

* dynamic canvas

* add code

* fix

* Add code

* add code

* crop size deprecation

* fix crop_size

* add code

* typecheck

* fix story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Suzana Ilic <suzana.ilic.tokyo@gmail.com>
2025-01-22 18:35:00 +00:00
Hannah
feb1e81eca
Add toolbar with fullscreen button to gr.Dataframe (#10377)
* add toolbar with full screen and copy button

* add changeset

* add params and move toolbar to new file

* remove copy button for now

* add story

* add changeset

* test

* tweak

* tweak

* story fix

* test

* tweak

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-21 15:24:16 -08:00
Hannah
951704346c
Ensure columns hidden with pandas .hide() works as expected (#10383)
* check  hidden_columns

* add changeset

* add test

* lint

* lint

* fix test

* Update gradio/components/dataframe.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* lint

* lint

* lint

* claude said this will fix the test

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-17 14:52:01 -08:00
Hannah
2b7ba48013
Add show_row_numbers param to gr.Dataframe (#10376)
* add optional row number column

* add changeset

* weight tweak

* test

* test

* fix test again

* Update gradio/components/dataframe.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-17 20:16:02 +00:00
Abubakar Abid
31cccc3e79
Fix logic for detecting changes in gr.Dataframe table value (#10360)
* changes

* changes

* changes

* add changeset

* revert

* add changeset

* change

* changes

* add changeset

* add changeset

* allow non-string headers

* add changeset

* changes

* docs

* remove

* changes

* changes

* revert

* refactoring

* changes

* changes

* revert

* revert

* add changeset

* fix

* add changeset

* clean up

* cleanup

* more cleanup

* notebook

* test

* format

* add changeset

* backend

* format'

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-17 11:33:11 -08:00
Aman Chauhan
a91cb9c42c
Add show_reset_button to gr.slider initialization (#10340)
* add show_reset_button arg to slider

* add changeset

* add changeset

* changes

* tweaks

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-13 11:14:27 -08:00
aliabid94
e742dcccb3
Allow users to add a custom API route (#10332)
* changes

* add changeset

* changes

* add changeset

* changes

* changes

* changes

* chagnes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-10 11:46:57 -08:00
Abubakar Abid
343503d62e
Support gr.load()-ing Gradio apps with Blocks.load() events (#10324)
* changes

* add changeset

* changes

* changes

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-10 18:14:58 +00:00
Freddy Boulton
6b63fdec44
Blocked Paths Fix (#10304)
* add code

* add changeset

* Fix test

* empty

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-08 19:29:39 +00:00
Abubakar Abid
f2bd72f9ef
Reset flagged values when switching conversations in chat history (#10292)
* chat history

* add changeset

* changes

* add changeset

* changes

* changes

* more changes

* changes

* changes

* format

* notebook

* fix test

* changes

* add changeset

* changes

* changes

* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2025-01-06 13:59:31 -08:00
Abubakar Abid
890eaa3a9e
Allow displaying SVG images securely in gr.Image and gr.Gallery components (#10269)
* changes

* changes

* add changeset

* changes

* add changeset

* changes

* changes

* changes

* add changeset

* add changeset

* add changeset

* format fe

* changes

* changes

* changes

* revert

* revert more

* revert

* add changeset

* more changes

* add changeset

* changes

* add changeset

* format

* add changeset

* changes

* changes

* svg

* changes

* format

* add changeset

* fix tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-06 13:07:13 -08:00
Abubakar Abid
5ce2832497
Support saving chat history in gr.ChatInterface (#10191)
* save history prototype

* add changeset

* Declare exports in __all__ for type checking (#10238)

* Declare exports

* add changeset

* type fixes

* more type fixes

* add changeset

* notebooks

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Add `gr.BrowserState` change event (#10245)

* changes

* changes

* add changeset

* format

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* history

* changes

* changes

* changes

* history

* changes

* changes

* changes

* format

* add changeset

* changes

* changes

* more changes

* changes

* dataset changes

* changes

* add changeset

* add md variant for button

* add changeset

* changes

* changes

* format

* format

* add changeset

* changes

* changes

* more changes

* changes

* changes

* add changeset

* changes

* docs

* changes

* changes

* changes

* changes

* fix

* fix tests

* change

* add changeset

* fix logo issue

* changes

* version

* add changeset

* fix typecheck

* remove redundant

* pkg version

* add changeset

* changes

* Revert "changes"

This reverts commit 13bfe8c485d049f7d8c6f1e5c13e2bc04ab71dd5.

* reorganize code

* format

* changes

* add to deployed demos

* fix icons

* fix icon

* lint

* changes

* example

* changes

* fix buttons

* add changeset

* format

* add changeset

* update icon

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: Dmitry Ustalov <dmitry.ustalov@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2025-01-04 17:42:05 +00:00
aliabid94
a1f2649586
Chat Interface flagging and chatbot feedback (#10272)
* changes

* add changeset

* changes

* Update gradio/flagging.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/chat_interface.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/chat_interface.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/chat_interface.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/chat_interface.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/chatbot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* changes

* Update gradio/components/chatbot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* doc changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-03 14:05:22 +00:00
Dmitry Ustalov
3f192100d6
Declare exports in __all__ for type checking (#10238)
* Declare exports

* add changeset

* type fixes

* more type fixes

* add changeset

* notebooks

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-23 22:33:22 +00:00
Abubakar Abid
9285dd9eb8
Fix typing for components in gr.Interface and docstring in image.py (#10235)
* changes

* add changeset

* changes

* changes

* change

* add changeset

* image.py

* revert msg

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-20 19:32:49 -05:00
aliabid94
c3a9e64738
Allow editing chatbot messages (#10203)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update gradio/events.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/chatbot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-19 23:54:20 +00:00
Abubakar Abid
a95f8ef3ee
Add support for returning multiple messages from gr.ChatInterface chat function (#10197)
* multiple messages

* filepath

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add test

* add changeset

* changes

* add a lot more tests

* changes

* chat

* change

* changes

* chat

* changes

* change demo

* remove test

* changes

* format

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-17 14:46:10 -05:00
Hannah
13a83e5001
Allow reordering files in gr.File (#10210)
* allow reordering files in gr.File

* add changeset

* fix test

* Update gradio/components/file.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-17 15:03:01 +00:00
Freddy Boulton
25484f4bfb
Group chatbot messages by default (#10169)
* handle pasted text as file

* test

* add changeset

* remove unneeded test

* update file UI

* add changeset

* Revert "handle pasted text as file"

This reverts commit 1910029f103f89573210ee0a8b62823505a1b1db.

* add changeset

* Revert "test"

This reverts commit 25c17bd8d3505d09cd571382afeeacdec197bd9c.

* story

* remove border

* Revert "add changeset"

This reverts commit 29a91ee9dff771663c414880d10815ffe2f6b961.

* add changeset

* add code

* Code

* add code

* add changeset

* Update solid-hands-nail.md

* code

* add metadata typecheck

* trigger ci

* remove thought css

* Revert "remove thought css"

This reverts commit f1ea8f88f6ced9dc8e8897abdfd529952f851954.

* fix tuples - add borders

* lint

* Fix typecheck

* css tweak

* add code

* fix parameter name

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 20:11:43 +00:00
Abubakar Abid
c9ba9a4475
Use the modern lower-case Python types in the API typing information (#10196)
* changes

* add changeset

* add changeset

* add changeset

* changes

* format backend

* format

* fix imagedata

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 12:10:47 -08:00
aliabid94
9cd291b7f1
Resizeable chatbot (#10149)
* changes

* add changeset

* changes

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-11 12:47:15 -08:00
Abubakar Abid
23a2958f5e
Add a .click() event and padding parameter to the HTML component (#10155)
* add click event to html

* format

* add changeset

* add padding parameter

* fix test

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-11 09:00:53 -08:00
Hannah
6645518a66
Tweak Chatbot bubble_full_width behaviour (#10132) 2024-12-07 01:00:18 +00:00
Abubakar Abid
d5ae3a0049
Update devcontainers (#10146)
* change

* update

* update
2024-12-06 10:08:36 -06:00
Abubakar Abid
5d61c7b701
Fix lazy caching (#10124)
* fixes

* add changeset

* changes

* add changeset

* test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-04 16:00:28 -06:00
郭文涛
e450674ce4
add webcam_height and webcam_width to specify the resolution of the Webcam (#10032)
* add  webcam_height and webcam_width

* update

* A dictionary that allows developers to specify custom media constraints for the webcam stream. This parameter provides flexibility to control the video stream's properties, such as resolution, frame rate, and facing mode (e.g., front or rear camera on mobile devices). Overrides the default height and width settings when provided.

* add changeset

* add code

* Add code

* add changeset

* Fix tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-12-03 19:01:47 -05:00
yuvaljacob
b0f3f3a2a2
9484-fix-windows-filepath-unit-tests (#10089)
* 9484-fix-windows-filepath-unit-tests

* lint

* consistent

* changes

* use pathlib

* changes

---------

Co-authored-by: Yuval Jacobson <yuvalj@liveu.tv>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-02 15:03:55 -05:00
Abubakar Abid
ebe25bc13f
Fix chatbot/chatinterface type mismatch (#10080)
* push

* chat type

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-01 12:11:43 -05:00
Freddy Boulton
7d134e0b30
Fix example loading issue (#10038)
* fix

* Add code

* add changeset

* Fix bug

* lint

* add changeset

* fix both cache examples=False,True

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 15:11:06 -05:00
Freddy Boulton
bea3d2e363
Add api_name for ChatInterface (#10053)
* Add api_name for ChatInterface

* add changeset

* Update gradio/chat_interface.py

* Update test/test_chat_interface.py

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 19:35:48 +00:00
Hannah
a2a3cd466c
Add show_heading param to gr.Label (#9987)
* add hide_heading param

* amend hide heading logic for single labels

* add changeset

* add changeset

* fix test

* tweak docstring

* hide_heading -> show_heading

* add changeset

* set show_headings to true

* lint

* fix hidden top label

* fix background fill for ms and webkit

* add changeset

* Update gradio/components/label.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 19:26:23 +00:00
Freddy Boulton
ed156e258b
Fix state serialization issue (#10036)
* Fix bug

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-27 14:25:02 -05:00
Abubakar Abid
db162bfc59
enable lazy caching for chatinterface (#10015)
* lazy chat

* add changeset

* lazy caching

* lazy caching

* revert

* fix this

* changes

* changes

* format

* changes

* add env variable

* revert

* add changeset

* lazy

* fix

* chat interface

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-23 20:24:55 +00:00
Abubakar Abid
369a44e7f8
Add ability to provide preset response options in gr.Chatbot / gr.ChatInterface (#9989)
* options

* add changeset

* list

* types

* add changeset

* types

* docs

* changes

* more docs

* chatbot

* changes

* changes

* changes

* format

* notebooks

* typedict

* docs

* console logs

* docs

* docs

* styling

* docs

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update guides/05_chatbots/01_creating-a-chatbot-fast.md

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* restore

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-22 00:19:52 +00:00
郭文涛
4aa0e887a6
Add container parameter to gr.HTML component (#10014)
* add gr.datetime a param 'interactive:bool'

* update html with `container`

* delete irrelevant update

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-21 19:54:19 +00:00
Abubakar Abid
c3324d7f7f
Fix issues related to examples and example caching in gr.ChatInterface (#9990)
* changes

* changes

* add functional tests

* add changeset

* revert

* example format

* chat interface

* replace attribute with str

* replace attribute with function

* fix tests

* changes

* fix

* more changes

* changes

* changes

* demo

* more changes

* typing

* demos

* test

* changes

* changes

* functional tests

* add changeset

* fix pytest

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-20 12:57:59 -08:00
Abubakar Abid
e7629f7eac
Adds copy event to gr.Markdown, gr.Chatbot, and gr.Textbox (#9979)
* add copy event

* add changeset

* test

* demo

* changes

* add changeset

* add list format

* typing

* notebook

* copy events'

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-19 19:58:19 +00:00
Hannah
08f4b8b000
Add allow_file_downloads param to allow downloading image/video/audio media in chatbot (#9905)
* add allow_file_downloads param

* add download btn for markdown images

* add changeset

* tweak

* fix test

* remove param

* revert param removal

* fix show logic

* rename show_download_button to allow_file_downloads

* change default to True

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-15 15:50:32 -08:00
Abubakar Abid
fc06fe41f0
Add ability to read and write from LocalStorage (#9950)
* localstate

* add changeset

* changes

* changes

* changes

* add changeset

* changes

* add changeset

* format

* notebook

* some changes

* add changeset

* format

* fix

* changes

* fix js lint and ts

* add changeset

* fix pytest

* component demo

* rename

* rename

* notebooks

* revert

* changes

* revert

* revert

* revert

* changes

* changes

* format

* fix

* notebook

* docstring

* guide

* types

* cleanup

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 12:56:36 -08:00
Muhammad Yaseen
a70ba5e0f0
Clearer error message in Dropdown's and Radio's preprocess function (#9921)
* Clearer error message in Dropdown's and Radio's preprocess function

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-11 19:44:31 +00:00
Muhammad Yaseen
eafe22cd94
Clearer error message in CheckboxGroup's preprocess function (#9906)
* Clearer error message in CheckboxGroup's preprocess function

* add changeset

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-05 19:49:32 -04:00
Freddy Boulton
dcfa7ad3e8
Enforce meta key present during preprocess in FileData payloads (#9898)
* add code

* add code

* add changeset

* revert

* use is_file_obj_with_meta

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-04 15:00:27 -05:00
Abubakar Abid
ff5be457dc
Use safehttpx.get() instead of async_get_with_secure_transport() (#9795)
* changes

* add changeset

* format

* format

* format

* add changeset

* remove tests

* bump

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-23 12:33:13 -07:00
Abubakar Abid
bcb7d15a8a
Add a .clear event to the gr.Chatbot component (#9762)
* clear event fix

* add changeset

* diffusers fix

* update

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-18 15:56:28 -07:00
Richard Decal
16895e8628
Fixes #9742 (#9767)
* Fixes #9742

Validator was not handling situation where function does not return anything.

Signed-off-by: Richard Decal <public@richarddecal.com>

* add test case for function which doesn't return anything

Signed-off-by: Richard Decal <public@richarddecal.com>

* format

* add changeset

---------

Signed-off-by: Richard Decal <public@richarddecal.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-18 15:48:38 -07:00
Abubakar Abid
ea2367ccb1
allow setting initial value of gr.Dropdown to None to designate that no value should be initially selected (#9699)
* set initial

* add changeset

* fixes

* revert'

* add changeset

* add test

* fix multiselect case, add test

* change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-15 00:05:45 -07:00