Commit Graph

7282 Commits

Author SHA1 Message Date
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
Abubakar Abid
b94f010a56
Apply Zero GPU for gr.ChatInterface (#10081)
* zero gpu

* add changeset

* changes

* changes

* add changeset

* change

* check

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-01 14:45:23 -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
Ali Abdalla
b2a21c643d
Add HTML support to paramviewer descriptions (#10083) 2024-11-30 21:16:34 -08:00
Yuichiro Tachibana (Tsuchiya)
873dab5bce
Fix the Playground to ignore comments in the requirements text (#10073)
* Fix the Playground to ignore comments in the requirements text

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-30 09:29:11 +09:00
Yuichiro Tachibana (Tsuchiya)
bf03d54e2f
Fix to call bootstrap_custom_element() if the script is loaded after the DOMContentLoaded event (#10077)
* Fix to call bootstrap_custom_element() if the script is loaded after the DOContentLoaded event

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-29 12:21:54 -08:00
Gradio PR Bot
4d67d39477
chore: update versions (#10067)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-28 14:23:37 -05:00
Hannah
afd75def9e
Fix label placement in gr.HTML (#10069)
* remove unneeded label-container

* add changeset

* add block padding to prevent breaking change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-28 19:13:56 +00:00
Abubakar Abid
368ba73106
Update Chat Interface examples and add more LLM libraries and API providers (#10025)
* docs

* guide

* langchain

* changes

* reduce

* llama index example

* demo

* demo

* reduce

* add comment

* fix langchain example

* reduce

* guide

* openai demo

* changes

* sambanova

* hyperbolic

* push

* guide

* add chatbot demos to playground

* add changeset

* claude

* restore

* fix data model

* add changeset

* claude demo

* more changes

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/05_chatbots/02_chat_interface_examples.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* more examples

* reduce

* changes

* notebooks

* lint

* Fixes creating chatbot fast guide and website build issues   (#10060)

* fixes

* formatting

* examples

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-28 14:07:39 -05: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
Abubakar Abid
47073ff0a8
fix clog (#10070) 2024-11-28 12:36:12 -05:00
Adrien
cbd703270a
fix: stream node response to user (#10068)
* fix

Signed-off-by: Adrien <adrien@huggingface.co>

* add changeset

* add changeset

* format

* add changeset

* fix read content

Signed-off-by: Adrien <adrien@huggingface.co>

---------

Signed-off-by: Adrien <adrien@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-28 12:33:12 -05:00
Lucain
c38cf64df6
Use get_token instead of HfFolder.get_token (#10064)
* Use get_token instead of HfFolder.get_token

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-28 10:14:01 -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
Hannah
5da6c1da47
Ensure chatbot messages are aligned correctly (#10055)
* tweak text-align logic

* * remove redundant text-align
* fix message-buttons z-index

* add changeset

* add changeset

* revert comments

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-27 17:55:29 -05:00
Hannah
e0ed480798
Remove duplicated share icon in gr.Chatbot (#10056)
* fix double share button

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-27 17:55:20 -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
Hannah
458941c508
Allow full screen mode in interactive gr.Image (#10054)
* allow full screen mode in interactive image

* add changeset

---------

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:03:12 -05:00
郭文涛
5d36c8088d
Add gr.datetime a param interactive:bool (#10013)
* add gr.datetime a param 'interactive:bool'

* update html with `container`

* repair

* add changeset

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-11-27 19:41:35 +00: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