Commit Graph

7301 Commits

Author SHA1 Message Date
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 1910029f10.

* add changeset

* Revert "test"

This reverts commit 25c17bd8d3.

* story

* remove border

* Revert "add changeset"

This reverts commit 29a91ee9df.

* 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 f1ea8f88f6.

* 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
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
Abubakar Abid
494c4ddf6c
Add note that SSR mode is experimental (#10198)
* exp

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 09:05:38 -08: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 f858097240.

* Revert "fix test"

This reverts commit 41570fa100.

* 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
Abubakar Abid
20b9d72ebb
Pass value of HF_TOKEN environment variable when loading models with gr.load (#10092)
* verbose

* add changeset

* changes

* maybe fix

* add changeset

* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-12 23:53:14 -08:00
Abubakar Abid
424365bdbd
JSON type fix in Client and and typing fix for /chat endpoint in gr.ChatInterface (#10193)
* fix

* add changeset

* add changeset

* fix

* chat interface fixes

* rename

* add changeset

* format

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 01:58:03 +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
Julien Kirch
22fe4ce5a1
Fix multipart ModuleNotFoundError by renaming import to python_multipart (#10188)
* Fix ModuleNotFoundError

* add changeset

* more changes

* formt

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-12 11:26:45 -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
Dawood Khan
7d70596d0b
Multimodal autofocus fix (#10168)
* autofocus

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-11 09:16:20 -05:00
Kazuhito Yokoi
8ac5b13c96
Add Japanese translations for login UI (#10166)
* Add Japanese translations for login UI

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-10 16:01:14 -08:00
Abubakar Abid
5f03649668
Let Gradio be typed! (#10167)
* py.typed

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-10 10:52:32 -08:00
Ouail Bendidi
19e1ef52dc
make printing the error message from a gr.Error to the console configurable (#10158)
* make print_exc error configurable

* add changeset

* tweak

* tweak

* review: update traceback printing in queuing and utils

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-10 17:54:07 +00: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 1910029f10.

* add changeset

* Revert "test"

This reverts commit 25c17bd8d3.

* story

* remove border

* Revert "add changeset"

This reverts commit 29a91ee9df.

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-10 15:50:32 +00:00
Freddy Boulton
3a053cc76c
Fix chatbot visible prop not reacting to changes (#10161)
* Fix bug

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-09 15:13:56 -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
Kazuhito Yokoi
7ca36850c9
Add Japanese message into message catalog (#10159)
* Add Japanese message into message catalog

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-09 14:05:01 -06:00
Hongwei Ruan
43d88c32bf
Fix: Added support for show_api in mount_gradio_app (#10097)
* Fix: Added support for show_api in mount_gradio_app

* add changeset

* 2nd Fix: show_api in mount_gradio_app

* 3rd Fix: show_api in mount_gradio_app

* Update gradio/routes.py

* Update gradio/routes.py

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-08 00:32:23 -06:00
Anirban Basu
d5b299cfb2
Fixes ERR_PNPM_UNSUPPORTED_ENGINE while creating a devcontainer. (#10154)
Details: https://github.com/gradio-app/gradio/issues/10141#issuecomment-2525108481
2024-12-08 00:16:36 -06: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
Hannah
6645518a66
Tweak Chatbot bubble_full_width behaviour (#10132) 2024-12-07 01:00:18 +00:00
Abubakar Abid
b7e40414bb
env variable' (#10147) 2024-12-06 14:10:22 -06:00
Abubakar Abid
d5ae3a0049
Update devcontainers (#10146)
* change

* update

* update
2024-12-06 10:08:36 -06:00
Muspi Merol
cb5b89108e
Refactor NO_RELOAD implementation (#10088)
* Refactor `NO_RELOAD` implementation

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-06 15:54:05 +00:00
Abubakar Abid
0248c6d9d8
upgrade (#10145) 2024-12-06 09:42:25 -06:00
Hannah
9a6ce6f6b0
Refactor full screen logic to be reusable (#10098) 2024-12-05 23:51:30 +00:00
Abubakar Abid
3a6151e942
Add docs for additional_outputs in gr.ChatInterface (#10130)
* changes

* change
2024-12-05 13:46:14 -06:00
Abubakar Abid
4984e847fa
Fix API docs for multimodal_textbox.py (#10131)
* fix multimodal api

* format

* add changeset

* null

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-05 11:20:20 -06:00
Ali Abdalla
a623fafbcf
Move requirements generation in playground to playground worker (#10126)
* move requirements genereation

* formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-04 20:48:49 -08:00
Gradio PR Bot
c5ae60780c
chore: update versions (#10082)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-04 15:04:48 -08:00
Abubakar Abid
36e95977b0
Fixes options in the streaming chatbot case (#10123)
* changed

* add changeset

* frontend

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-04 16:00:50 -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
aliabid94
b02c8b7d4f
Fix sharing on chatbot with spaces (#10125)
* changes

* add changeset

* 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 15:12:00 -06:00
Hannah
8530b6e2f9
Redesign pending bubble in Chatbot (#10099)
* redesign pending bubble in chatbot

* add changeset

* add minwidth to image frame

* add changeset

* adjust bubble margin for avatars

* ensure iconbuttonwrapper doesnt get cut off

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-04 14:41:23 -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
Luke Hsiao
f1718c4713
build(deps): unpin and upgrade python-multipart (#10110)
Commit febbed6db1 ("Pin multipart version to fix issues with yanking
(#9834)") pinned this because of issues with `micropip` yanking
versions. However, doing so blocks users of `gradio` from being able to
resolve important security vulnerabilities (see [[1]] as an example).

This updates `python-multipart` to the patched version, as well as unpins
it to prevent the need for `gradio` to cut new releases every time a
`python-multipart` vulnerability is found.

[1]: https://github.com/advisories/GHSA-59g5-xgcq-4qw3

Signed-off-by: Luke Hsiao <luke.hsiao@numbersstation.ai>
2024-12-04 00:11:24 +00: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
Ali Abdalla
ec10aa3b9b
Fix paramviewer descriptions to only render markdown links (#10096)
* fix paramviewer to only render markdown links

* switch / to use md links

* add changeset

* change docstring

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-02 15:59:08 -08:00
sharon
98dd6687e1
add http codes 303 and 307 to url_ok (#10094)
* add http codes 303 and 307 to `url_ok`

* apply formatting fixes

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-02 22:24:02 +00:00
Abubakar Abid
01b919f04b
Support additional_outputs in gr.ChatInterface (#10071)
* artifacts

* add changeset

* chatinterface

* guide fixes

* example

* zerogpu

* Revert "zerogpu"

This reverts commit 4d7b5882ae.

* changes

* submit fn

* chat interface

* changes

* add changeset

* notebook

* lint

* type

* regex

* add changeset

* fixes

* line

* fixes

* formatting

* change

* change

* add guard

* link to playground demo

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-12-02 16:16:07 -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
5ea3cb51a3
Update requirements.txt for gradio and gradio_client (#10090)
* update reqs

* add changeset

* add changeset

* Update requirements.txt

* Update requirements.txt

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-02 15:02:52 -05:00
Yuichiro Tachibana (Tsuchiya)
6cc13f55e0
Playground exclude unavailable packages (#9998)
* Move DemosLite.svelte to DemosLite/DemosLite.svelte

* Update the playground to check if each package name inferred by LLM exists on PyPI

* add changeset

* Restore the worker url

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-02 01:37:17 +00:00