58 Commits

Author SHA1 Message Date
Gradio PR Bot
7377055815
chore: update versions (#10349)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-22 14:44:41 -08:00
Abubakar Abid
48809c722b
Fix bug where dataframe value prop was not updating when an input value was changed manually (#10410)
* dataframe

* add changeset

* comment

* simple unit test

* simple unit test

* add e2e test

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-22 22:19:29 +00:00
Abubakar Abid
3219382eee
Fix event triggers and recent regressions related to gr.DataFrame (#10403)
* fixes

* add changeset

* fix

* add changeset

* cleanup

* notebooks

* changes

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-22 13:06:18 -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
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
Hannah
40e0c48320
Ensure clicking on a cell once enables editing mode (#10365)
* modify cell click behaviour

* fix mouse pointer events

* add changeset

* deselect cell on click outside

* ensure cell menu closes

* tweak editable logic

* update e2e test with single click

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-17 16:22:38 +00:00
Yuichiro Tachibana (Tsuchiya)
b0cf92f03b
PWA icon customization (#10341)
* Use a single icon file with 'any' size for PWA

* Add Blocks.pwa_icon option for the developer to specify the PWA icon

* add changeset

* Add docstring

* Use favicon_path for PWA icons

* target blank

* format

* add changeset

* Add a new section about PWA to the guide

* Add pwa_icon path to proxy config

* Move guide image files to another repo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-16 14:00:54 +00:00
Gradio PR Bot
7fa9b6fc97
chore: update versions (#10316)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-10 12:39:10 -08:00
Abubakar Abid
391a4d09a9
Add .previous_value to gr.EditData (#10323)
* changes

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-09 13:39:03 -08:00
Freddy Boulton
f19ca89cdd
Add preview_open and preview_close events to Gallery (#10303)
* Add preview_open and preview_close events to Gallery

* add changeset

* notebooks

* trigger change when upload

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-08 20:25:47 +00:00
Gradio PR Bot
135630e187
chore: update versions (#10218)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-06 16:02:55 -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
1be31c14e2
Allow editable ChatInterface (#10229)
* 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>
2024-12-20 16:15:25 -08: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
Yuichiro Tachibana (Tsuchiya)
64d1864f8f
manifest json for PWA (#10187)
* Serve manifest.json for PWA

* Set the PWA title

* add changeset

* Add the pwa option to Blocks.launch()

* Set icon files with 192 and 512 pixels which are necessary for PWA on Chrome

* add changeset

* Format

* Configure the /manifest.json path for SPA and SSR

* Set the default value for the name field in the manifest.json

* Fix gr.Interface() not to override the default title value

* Add a test case for ChatInterface.title

* Set the default values to Interface.title and ChatInterface.title

* Revert "Set the default values to Interface.title and ChatInterface.title"

This reverts commit 3574d6b344cb471f519c4b6b1431f2ba474782fa.

* Revert "Add a test case for ChatInterface.title"

This reverts commit 276d6f2af7f8399213b5ec40bd3706601830e0cd.

* Revert "Fix gr.Interface() not to override the default title value"

This reverts commit 90f0efa6925d8563775f3c3fbb1a385553cd610f.

* Enable the PWA feature on Spaces by default

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-19 13:35:07 +09:00
Freddy Boulton
501adefd0c
Some agent low-hanging issues (#10214)
* Add code

* add changeset

* add changeset

* Fix box closing issue

* Fix handling

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-17 22:21:24 +00:00
aliabid94
3d8fc42c94
Fix render trigger (#10212)
* changes

* add changeset

* changes

* Update gradio/renderable.py

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

---------

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-16 21:18:36 +00:00
Gradio PR Bot
dc87afecf4
chore: update versions (#10127)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-13 12:58:27 -08:00
aliabid94
b4004e37ae
Support event + request data in gr.render triggers (#10190)
* changes

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 18:50:53 +00:00
Hannah
3665e81b53
Allow Chatbot examples to show more than one image (#10111)
* change example image limit to 4

* add changeset

* refactor examples

* redesign examples

* aria improvements

* check for multimodal

* use multimedia icons

* clean up

* remove min-height

* add param

* fix test

* Revert "add param"

This reverts commit f858097240c3615c19650b5d5263c70d6a408fac.

* Revert "fix test"

This reverts commit 41570fa1004965479e7692ee83dd33b1d4c709b0.

* handle icon in chat_interface.py

* remove unused css class

* fix types

* format

* fix test

* - change logic to use example icon for text example if exists
- ensure mixed files can be displayed in multiples

* add stories

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-13 14:17:48 +00:00
aliabid94
5e6e234cba
Custom component in rerender (#10170)
* changes

* add changeset

* changes

* Support gr.Examples in gr.render (#10173)

* changes

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-12 17:40:28 -08:00
Abubakar Abid
e525680316
Clean up gr.ChatInterface and fix API type discrepancy (#10185)
* changes

* add changeset

* changes

* clean

* changes

* format

* changes

* clean

* add

* changes

* add changeset

* mutate

* changes

* fix streaming

* test

* format

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* refactor

* Fixes

* fix

* revert

* revert

* revert

* revert

* changes

* revert^3

* format

* comment

* format

* fix example caching

* modify api test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-12 12:44:32 -08:00
Hannah
3e93740f05
Improve pasted text behaviour in Multimodaltextbox (#10135)
* handle pasted text as file

* test

* add changeset

* remove unneeded test

* add max_plain_text_length param

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-09 21:37:29 +00:00
Abubakar Abid
48e4aa9d62
adds a run_examples_on_click parameter to gr.ChatInterface mirroring the the run_on_click parameter in gr.Examples (#10109)
* add param

* add changeset

* add changeset

* more changes

* add changeset

* slight refactor

* add changeset

* fix

* fixes

* tweak

* clean

* clean

* lint

* upload

* notebook

* more testing

* changes

* notebook

* add changeset

* notebooks

* format

* format

* fix undo

* changes

* changes

* fix

* changes

* fix assert

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-07 09:51:00 -06:00
aliabid94
ce5680f10f
Add event and gr.Select data support in gr.render blocks (#10114)
* changes

* add changeset

* changes

* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-04 13:42:30 -06:00
aliabid94
97d647ecfd
Fix state changes within a gr.render (#10095)
* changes

* add changeset

---------

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-04 12:10:31 -06:00
aliabid94
de42c85661
fix every= support in render (#10113)
* changes

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-04 10:39:07 -06:00
aliabid94
19d4ee62c3
Allow concurrent renders (#10059)
* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* Update gradio/blocks.py

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

---------

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-11-28 12:42:15 -05:00
Gradio PR Bot
b400706fb6
chore: update versions (#9970)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-27 18:10:49 -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
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
Gradio PR Bot
4d520a8a7b
chore: update versions (#9908)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-15 16:16:39 -08:00
Gradio PR Bot
b5eaba1d6d
chore: update versions (#9874)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-04 14:59:10 -08:00
Gradio PR Bot
8e5b5a201e
chore: update versions (#9790)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-25 12:33:07 -07:00
Hannah
b1b81c9e1c
Hide option to add row/col when count is fixed in dataframe (#9649)
* * hide add row or col if  count is fixed
* restore selected cell outline

* add changeset

* * fix selected cell border
* close cell menu on window resize

* tweak

* fix test

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-24 15:03:10 +01:00
pngwn
df1cf8f6c5
Speed up CI by avoiding the need to package (#9791)
* optimise typechecking

* fix builds
2024-10-22 15:43:38 +01:00
Gradio PR Bot
5a2967e78a
chore: update versions (#9747)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-21 19:28:58 -07:00
Hannah
61cd768490
Ensures tabs with visible set to false are not visible. (#9653)
* * fix tab visibility
* add story

* add changeset

* stuff

* fix

* more fix

* fix undefined tab labels

* fix tabs again

* add changeset

* format

* format

* fix type

* add changeset

* fix all things

* format

* add changeset

* notebooks

* visible tabs

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-10-21 16:46:01 -07:00
Freddy Boulton
cd3fab3b1f
Fix functional tests pt 2 (#9713)
* tests

* fix race condition

* fix test

* try again

* revert changes

* 🤞

* see failure

* add changeset

* add changeset

* Fix

* Fix

* make apply pass

* try

* check

* remove first

* fix code

* delete changeset

* fix reload test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-16 17:40:44 -07:00
Gradio PR Bot
6953f1957f
chore: update versions (#9697)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-16 23:36:14 +01:00
Tristan Zhang
2ed236187a
Allow setting title in gr.Info/Warning/Error (#9681)
* Allow setting title in gr.Info/Warning/Error

* fix

* add changeset

* allow title in gr.Error

* make argument consistent

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-15 09:58:00 -07:00
Dawood Khan
3407b505c7
Chat Interface Functional test Fix + Chat Examples Center (#9660)
* test fix

* add changeset

* test fixc

* test fix

* Revert "test fix"

This reverts commit 9720f675cb3bb0fbfc0904dc5cf982e987dcc8ef.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-14 12:30:58 -04:00
aliabid94
e5d48956f7
Fix functional chatinterface tests (#9657)
* chanes

* add changeset

* Update package.json

* delete changeset

---------

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-10-11 14:47:58 -07:00
Gradio PR Bot
207ae11a21
chore: update versions (#9637)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-11 17:04:13 +01:00
Yuichiro Tachibana (Tsuchiya)
9004b11064
Fix Lite to work on FireFox (#9528)
* Fix CrossOriginWorker to work in FireFox

* add changeset

* Add FireFox to the Lite E2E test

* Use request.arrayBuffer instead .body on FireFox

* add changeset

* Delete the user-agent header in PyodideHttpTransport

* Ignore the kitchen_sink E2E test for FireFox

* Fix

* Fix test files using file uploader so they work on FireFox, ref: https://stackoverflow.com/a/78701710

* Fix js/spa/test/outbreak_forecast.spec.ts

* Fix outbreak_forecast.spec.ts

* [wip] Comment out plotly part

* add changeset

* Skip Plotly tests on FireFox temporarily

* Revert "Fix"

This reverts commit 98e2495e9c87bbb7708efe4422189997608c0a37.

* Fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-10 11:25:41 -07:00
Gradio PR Bot
cbbeebd2eb
chore: update versions (#9622)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-09 15:01:11 -07:00
Dawood Khan
1f3ee97d10
Fix Functional Tests (#9619)
* tests

* changes

* add changeset

* chet fixes

* fixes

* add changeset

* 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>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2024-10-09 14:12:39 -07:00
aliabid94
ec95b0212b
Fix stopping chat interface when stop button is clicked (#9626)
* changes

* add changeset

* changes

* changes

* fix test

---------

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-10-09 14:00:58 -07:00
Freddy Boulton
5923c67913
Fix Chatbot Examples Error (#9623)
* Fix

* lint

* add changeset

* add changeset

* notebooks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-09 13:53:26 -07:00
pngwn
bbf9ba7e99
i am changesets now (#9612)
* version

* fix
2024-10-09 13:46:26 +01:00