255 Commits

Author SHA1 Message Date
Gradio PR Bot
9c6c55ba2d
chore: update versions (#10931)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-08 14:31:44 -07:00
Gradio PR Bot
097838c7ae
chore: update versions (#10911)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-01 14:25:15 -07:00
Abubakar Abid
afe0b139fa
Fix regression around chatbot thoughts not being collapsible (#10922)
* changes

* add changeset

* add changeset

* changes

* changes

* changes

* format

* update docs

* docs

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-01 13:10:43 -07:00
Gradio PR Bot
846b60dbd5
chore: update versions (#10848)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-24 15:52:12 -04:00
Abubakar Abid
1649b00384
Add support for mermaid.js in Markdown component (as well as components like gr.Chatbot that use Markdown) (#10854)
* changes

* add changeset

* changes

* format

* add changeset

* notebook

* change

* changes

* format

* story

* changes

* update

* changes

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-24 19:37:20 +00:00
Gradio PR Bot
fe8c06afb5
chore: update versions (#10811)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-18 14:38:44 -07: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
Gradio PR Bot
f719264344
chore: update versions (#10753)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-13 15:11:33 -07:00
Dawood Khan
cae5517307
Fixed size for pending thoughts (#10671)
* restyle

* style

* add changeset

* nested thoughts

* nested fix

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-12 17:51:13 +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
Gradio PR Bot
db0e09ce21
chore: update versions (#10717)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-06 14:29:33 -08:00
Abubakar Abid
667f8a1f82
Fix Chatbot avatar image position (#10724)
* pending

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 21:23:06 +00:00
Gradio PR Bot
87820551ee
chore: update versions (#10693)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-28 13:16:35 -08:00
Gradio PR Bot
13c6b61ea1
chore: update versions (#10674)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-26 16:29:46 -08:00
Dawood Khan
367fe14381
Fix chatbot share button payload too large (#10683)
* chatbot share link formatting

* add changeset

* Update utils.ts

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-26 17:21:31 -05:00
Gradio PR Bot
42053705a8
chore: update versions (#10651)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-24 17:58:24 -08:00
Dawood Khan
d06f3e3e08
Chatbot thoughts generating animation (#10636)
* pending dots

* add changeset

* fix

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-24 16:48:15 -08:00
Gradio PR Bot
c05a076752
chore: update versions (#10634)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-20 14:50:40 -08:00
Dawood Khan
75c9748f50
Fix: Chatbot sharing payload too large (#10637)
* share fix

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-20 12:13:58 -08:00
Gradio PR Bot
de3c79c6b3
chore: update versions (#10626)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-19 11:47:33 -08: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
Gradio PR Bot
899ebb88af
chore: update versions (#10516)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-11 17:58:27 -08: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
Gradio PR Bot
f611983323
chore: update versions (#10479)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-04 21:24:38 -08:00
Gradio PR Bot
b7b96e61fb
chore: update versions (#10464)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-30 14:28:08 -08:00
Gradio PR Bot
7cc5aa195b
chore: update versions (#10444)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-28 16:37:47 -08:00
Abubakar Abid
337b5224a6
Small tweaks to gr.ChatMessage and spacing between chatbot messages (#10448)
* change

* changes

* add changeset

* changes

* move to top

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-28 15:53:15 -08:00
Gradio PR Bot
3608446630
chore: update versions (#10417)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-23 19:38:46 -08:00
Abubakar Abid
92dda15f6d
Hide the waveform when playing recorded audio if show_recording_waveform is False (#10405)
* changes

* add changeset

* revert

* changes

* format

* story

* test

* changes

* add changeset

* changes

* changees

* changes

* changes

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-23 19:13:36 -08:00
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
9dc5d157aa
Tweak behavior related to the status of gr.Chatbot thought messages (#10404)
* chatbot

* changes

* add changeset

* changes

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-22 12:09:46 -08:00
Abubakar Abid
4d47e4b4e2
Add a log parameter to Chatbot metadata that allows displaying str content next to the thought title (#10392)
* changes

* changes

* chatbot

* format

* add changeset

* changes

* changes

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-20 22:43:04 -08: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
be40307d1d
Add support for thinking LLMs directly in gr.ChatInterface (#10305)
* ungroup thoughts from messages

* rename messagebox to thought

* refactor

* * add metadata typing
* group thoughts when nested

* tweaks

* tweak

* add changeset

* fix expanded rotation

* border radius

* update thought design

* move spinner

* prevent circular reference

* revert border removal

* css tweaks

* border tweak

* move chevron to the left

* tweak nesting logic

* thought group spacing

* update run.py

* icon changes

* format

* add changeset

* add nested thought demo

* changes

* changes

* changes

* add demo

* docs

* guide

* refactor styles and clean up logic

* revert demo change and and deeper nested thought to demo

* add optional duration to message types

* add nested thoughts story

* format

* guide

* change dropdown icon button

* remove requirement for id's in nested thoughts

* support markdown in thought title

* get thought content in copied value

* add funcs to utils

* move is_all_text

* remove comment

* notebook

* change bot padding

* changes

* changes

* changes

* panel css fix

* changes

* changes

* changes

* changes

* tweak thought content opacity

* more changes

* add changeset

* changes

* restore

* changes

* changes

* revert everythign

* revert everythign

* revert

* changes

* revert

* make changes to demo

* notebooks

* more docs

* format

* changes

* changes

* update demo

* fix typing issues

* chatbot

* document chatmessage helper class

* add changeset

* changes

* format

* docs

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-01-10 00:06:07 +00: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
Hannah
58b839196e
Improve tool UI and support nested thoughts (#10226)
* ungroup thoughts from messages

* rename messagebox to thought

* refactor

* * add metadata typing
* group thoughts when nested

* tweaks

* tweak

* add changeset

* fix expanded rotation

* border radius

* update thought design

* move spinner

* prevent circular reference

* revert border removal

* css tweaks

* border tweak

* move chevron to the left

* tweak nesting logic

* thought group spacing

* update run.py

* icon changes

* format

* add changeset

* add nested thought demo

* changes

* changes

* changes

* add demo

* refactor styles and clean up logic

* revert demo change and and deeper nested thought to demo

* add optional duration to message types

* add nested thoughts story

* format

* change dropdown icon button

* remove requirement for id's in nested thoughts

* support markdown in thought title

* get thought content in copied value

* add funcs to utils

* move is_all_text

* remove comment

* notebook

* change bot padding

* panel css fix

* tweak thought content opacity

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-08 21:27:15 +00:00
Gradio PR Bot
e606d92f11
chore: update versions (#10302)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-08 12:52:35 -08: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
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
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
Dawood Khan
f0cf3b789a
Dataframe support in Chatbot (#10225)
* dataframe

* dataframe

* remove console log

* add changeset

* datatype

* fix border

* Update js/chatbot/shared/Component.svelte

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

* border fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-23 13:04:28 -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
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
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
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
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
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
Dawood Khan
2b5530274a
Quick Fix: Fixes autoplay parameter for Audio/Video in Chatbot (#10129)
* chat fixes

* add changeset

* autoplay fix

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-10 09:34:57 -08:00
Hannah
fe7a9db659
Improve uploaded file UI in Chatbot (#10137)
* 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

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-10 15:50:32 +00:00