1114 Commits

Author SHA1 Message Date
pngwn
2f68c9d988
Refactor and redesign ImageEditor component (#10635)
* thanks o3

* add changeset

* more

* make events work

* moreeeeeee

* prettier

* nb

* add changeset

* Update utils.py (#10773)

### Description

This pull request updates the `get_node_path` function in the `gradio/utils.py` file to handle scenarios where the `which` command is missing. The function has been improved by splitting the error handling into two separate `try` blocks for better granularity and robustness.

### Changes Made

- Split the `try` block into two separate `try` blocks for handling Windows and Unix-like systems.
- Added error handling for `FileNotFoundError` in addition to `subprocess.CalledProcessError`.

### Rationale

The original implementation did not properly handle the case when the `which` command is missing. This update ensures the function gracefully handles such scenarios and continues to check other possible locations for the `node` executable.

* fix: latex rendering of markdown (#10765)

* fix: latex rendering of markdown

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* more

* Tweak Image Editor UI (#10779)

* tweak layers ui

* upload alignment and text colour

* change check icon

* zoom tweaks

* tweak layers panel

* changes

* more

* fix image inputs

* more fix

* fix

* fix loading layer via events

* fix loading layer via events

* allow developers to control layers more granularly

* disable pan button when at min zoom

* Update image_editor.py

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

* show visual indicator for outpainting region

* ensure initial image values work

* fix cropped image placement

* fix crop intiialisation options

* demos and fix brush opacity options

* fix layer_options updates and add demo

* more

* fix webcam

* fix

* fix

* improve color swatches

* fix canvas resizing

* simplify crop

* fix crop yet again

* rework controls

* scripts

* tweaks

* tweaks

* fix things

* Add two more demos for `gr.ImageEditor` (#10946)

* changes

* sketchpad

* changes

* various fixed

* generate notebooks

* update changes

* lockfile

* format code

* notebooks

* tweaks

* fix test

* fix notebooks

* changes

* fix storybook

* changes

* interface

* remove redo/undo story

* fix pytest

* changes

* push

* fiiiiiix

* tweaks

* fix

* fix thingy

* tweaks

* changeset

* add changeset

* fix

* fix

* website build issue

* add changeset

* add layeroptions to docs

* formatting

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Pablo Speciale <pablospe@users.noreply.github.com>
Co-authored-by: Col0ring <47329987+Col0ring@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-04-08 22:02:04 +01:00
Hannah
36da6d0d54
Fix value synchronisation issue in gr.Dataframe (#10918) 2025-04-05 14:49:08 +01:00
aliabid94
83c709ab2e
Adding docker tests (#10944)
* changes

* changes

* add changeset

* changes

* changes

* changes

* delete changeset

* changes

* Update test/test_docker/test_app.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>
2025-04-04 12:52:30 -07:00
Hannah
be46b94f51
Add rtl to gr.HighlightedText (#10924)
* add rtl to highlighted text

* add changeset

* fix test

* Update gradio/components/highlighted_text.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-04-02 13:57:23 +00:00
Hannah
8a62c7e90b
Add rtl to gr.Radio (#10923)
* add rtl to radio

* add changeset

* tweak param type

* tweak

* tweak

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-02 12:35:50 +01:00
Abubakar Abid
c8d6ddd344
Refactor get_request_url (#10921)
* refactor

* add changeset

* add changeset

* headers

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-01 19:56:24 +00:00
aliabid94
727401a0cc
Add root mount test (#10907)
* changes

* add changeset

* format

* Update routes.py

* changes

* changes

* changes

* changes

* 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>
2025-03-31 16:02:16 -07:00
Yuichiro Tachibana (Tsuchiya)
1e8cdee48a
Fix route_utils.get_api_call_path() (#10897)
* Fix route_utils.get_api_call_path() to strip only the trailing slash

* Enhance test_get_api_call_path_queue_join

* add changeset

* Fix typo

* Fix comment

* Refactoring; use request.url's method instead of httpx's

* Fix get_api_call_path() to search the target string only in url.path because it doesn't have to match in other parts in the URL string

* Enhance test_get_api_call_path_generic_call

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-28 03:38:26 -04:00
Abubakar Abid
3ba9e4febb
Fix request url (#10879)
* fix

* add tests

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-25 18:00:12 -04:00
Abubakar Abid
3a3d0d9388
Improve UI for lazy caching (#10873)
* changes

* changes

* hidden

* add changeset

* add changeset

* fix tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-25 12:54:15 -04:00
aliabid94
84fafc45bf
Fix /monitoring endpoint (#10872)
* changes

* add changeset

* Update routes.py

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-25 16:53:44 +00:00
Abubakar Abid
b42e4612ab
Adds a watermark parameter to gr.Chatbot that is added to copied text (#10814)
* changes

* add changeset

* format'

* test

* copy

* changes

* doc

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-17 14:58:58 -07:00
Abubakar Abid
fb8c1cb6d1
Move gr.Textbox lines logic to frontend (#10785)
* changes

* add changeset

* test

* fix max lines

* fix e2e test

* add changeset

* changes

* format

* warnings textbox

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-11 23:10:35 +00:00
Yuichiro Tachibana (Tsuchiya)
731ab92001
Autocompletion on code editor component (#10733)
* Update CodeMirror packages to use the autocompletion feature of lang-python

* Add autocomplete option to the Code component

* add changeset

* Add AutocompleteTheme

* Fix test

* Fix docstring

* Enable autocompletion on Playground

* add changeset

* add changeset

* Assign Tab to acceptCompletion

* Enable autocompletion in the playground mode of Lite apps

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2025-03-11 19:51:29 +09:00
Hannah
c44b8f47b9
Add static_columns param for interactive dataframes (#10734)
* allow showing image sin dataframe with image component

* add scroll to top button

* add changeset

* fix truncated text issue + prevent truncating non-text data

* refactor with state mgmnt

* add changeset

* formatting

* tweaks

* tweak

* add e2e tests

* notebook

* more component extraction, move css to components

* type fixes

* test fixes

* fix test

* notebook

* add changeset

* fix tests

* fix test

* fix test

* remove misc.css file

* reset sort

* fix z-index over progress bar

* css tweak

* fix search and add search to e2e test

* fix keyboard reactivity issue

* add cell selection e2e tests

* z-index fixes

* ensure unique context ids

* fix row number bug

* frozen -> pinned

* pinned col border tweak

* pinned col fix when show_row_numbers is true

* header tweak

* fix pinned columns clash with column_widths

* add row test

* add static_cols param and test

* add changeset

* tweak

* fix tests

* test tweaks

* add row story

* tweaks

* fix test

* tweak

* redesign selection buttons

* fix test

* fix test

* fix test

* fix test

* edit demo with static cols

* change to list[int]

* cursor tweak

* fix test

* nb

* set col count to fixed if static_cols are set

* lint

* tweak demo

* fix col count logic

* add padlock icon

* fix py test

* lint

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-10 19:10:36 +00:00
Dawood Khan
3086343a68
Allow custom tags for chatbot (#10743)
* restyle

* style

* add changeset

* nested thoughts

* nested fix

* format

* allow_tags

* allow-tags for load

* undo

* add changeset

* allow custom tags

* format

* extract html tags into file

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-07 21:45:54 +00:00
Abubakar Abid
9fce28b76b
Allow sending a custom TLS certificate or no TLS certificate when connecting to custom share servers (#10728)
* changes

* changes

* add changeset

* changes

* add changeset

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 23:11:31 +00:00
Abubakar Abid
2248005b10
Add pwa and enable_monitoring parameters to mount_gradio_app (#10720)
* changes

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 14:16:57 -08:00
Lalit Yadav
f0a920c493
added a show_line_numbers to toggle line numbers in gr.Code() (#10643)
* added a show_line_numbers to toggle line numbers in gr.Code()

* added a show_line_numbers to toggle line numbers in gr.Code()

* add changeset

* notebook

* test_code.py updated to include show_line_numbers

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-21 22:11:42 +00:00
Abubakar Abid
ce4fb994e0
fix spelling of resizable parameter in gr.Chatbot (#10625)
* fix spelling

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-18 16:36:38 -08:00
Hannah
c354f5ff16
Add empty dataframe functionality (#10607)
* remove single row logic when value is empty

* fix header cell menu btn

* add add row button

* add changeset

* add changeset

* allow empty df example

* fix janky borders

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-17 22:16:27 +00:00
Hannah
b8ff5d6bfe
Add optional search bar to gr.Dataframe's toolbar (#10554)
* add test

* add changeset

* fix test

* amend filter behaviour

* fix label and toolbar placement

* edit story

* update filter logic

* rename show_search_input to show_search

* show_search_input rename

* tweak

* clean up

* clean up

* fix filter logic

* tweak

* fix test

* tweak

* amend show_seach options

* amend typing

* tweak

* amend search/filter behaviour

* clean up

* tweak

* more clean up

* tweak

* tweak

* Revert "tweak"

This reverts commit d22462efcb634c4af2e490e0424474745bb777e4.

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-12 01:28:44 +00:00
Hannah
26494cea57
Allow freezing columns in gr.Dataframe (#10561)
* add frozen col param

* ensure row numbers are frozen

* add changeset

* validate frozen cols value

* format

* ensure column widths are properly applied

* fix chromatic test

* tweak

* adjust col selection logic

* fix test

* rename frozen_cols to frozen_columns

* restore alternating background

* fix widths

* change implementation

* ensure first col cells can be selected

* fix cell selection in col 1

* Revert "change implementation"

This reverts commit 4fb932809fab9566abdd2fb27033f31faba39027.

* fix widths

* frozen => pinned

* Revert "frozen => pinned"

This reverts commit a37616d2b2b0b4b07b1e2444fe98b74435f70ca6.

* Revert "Revert "frozen => pinned""

This reverts commit f16964d15ccbf08ed3727d79c11322bc18ded2e3.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-11 22:29:49 +00:00
Freddy Boulton
bcbb7b69f5
Fix DF Postprocess for tuples (#10548)
* fix

* add changeset

* add changeset

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-10 16:54:07 -05:00
Dawood Khan
3748e4c902
Chatbot allow_tags (#10507)
* fix

* add changeset

* Update gradio/components/chatbot.py

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

* add changeset

* test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-07 03:36:29 +00:00
Hannah
ed7a0919ab
Expand and collapse dataframe cells (#10463)
* - truncate long cell values
- add expand and collapse logic

* add changeset

* tweak

* add max_chars and single click expanding

* - fix test
- add story

* 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-02-03 22:37:34 +00:00
aliabid94
39f0c23303
Allow image uploads to gr.load_chat (#10345)
* changes

* add changeset

* changes

* changes

* chagens

* changes

* changes

* chagnges

* changes

* changes

* Update gradio/external.py

* changes

* simplify tests

---------

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-02-03 20:01:11 +00:00
Abubakar Abid
017ed46272
Clean up gr.DataFrame.postprocess() and fix issue with getting headers of empty dataframes (#10476)
* changes

* changes

* add changeset

* changes

* format

* changes

* add changeset

* notebook

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-31 13:11:49 -08:00
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