Commit Graph

5543 Commits

Author SHA1 Message Date
Abubakar Abid
933db53e93
Better handling of empty dataframe in gr.DataFrame (#5256)
* better handling of empty dataframe

* add changeset

* hide comments

* add changeset

* remove

* lint

* null case

* add stories

* stories

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 08:20:02 -07:00
Abubakar Abid
c39f06e16b
Fix .update() for gr.Radio() and gr.CheckboxGroup() (#5254)
* fix dynamic -> interactive

* fix checks

* add changeset

* add changeset

* fix changeset

* fix linting issues

* Fix update choices

* add test

* fix'

* revert

* revert

* Delete curly-hands-carry.md

* add changeset

* add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 07:58:33 -07:00
aliabid94
a773eaf750
Stop passing inputs and preprocessing on iterators (#5260)
* changes

* add changeset

* changes

* add changeset

* Update blocks.py

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 10:54:58 -04:00
renovate[bot]
1cefee7fc0
chore(deps): update dependency marked to v7 (#5112)
* chore(deps): update dependency marked to v7

* add changeset

* fix types

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-18 13:14:14 +01:00
Hannah
4b58ea6d98
Update i18n tokens and locale files (#5216)
* tokenize en strings in components and refactor en.json

* add changeset

* refactor more translation files

* more translation files

* tweak

* fix test

* fix other test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 12:36:52 +01:00
Abubakar Abid
f344592aeb
Allows setting a height to gr.File and improves the UI of the component (#5221)
* file

* file downlaod

* add changeset

* added story

* lint

* fix test

* add changeset

* margin

* fixes

* lint

* modify

* lint

* add changeset

* revert

* revert

* add changeset

* Delete Chatbot.stories.svelte

* revert

* revert

* add changeset

* redesign

* lint

* fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-17 18:43:12 -07:00
pngwn
ddac7e4d0f
Ensure File component uploads files to the server. (#5253)
* fix dynamic -> interactive

* fix checks

* add changeset

* add changeset

* fix changeset

* fix linting issues

* fix typing issue

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-17 12:20:19 -07:00
Abubakar Abid
c57d4c232a
gr.Radio and gr.CheckboxGroup can now accept different names and values (#5232)
* radio

* radio checkboxgroup

* add changeset

* type

* fix tests

* types

* fix unit test

* Update gradio/components/radio.py

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

* Update gradio/components/checkboxgroup.py

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

* fix review

* examples

* backend

* type fixes

* fix test

* fixed example

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-08-16 11:27:39 -07:00
Freddy Boulton
b3e50db92f
Remove aiohttp dependency (#5244)
* Remove aiohttp

* add changeset

* Add requirements file to filter

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-16 12:03:46 -04:00
Artem Kotov
1ecf88ac5f
fix #5229 (#5235)
* fix #5229

* add changeset

* add simple test for #5229 similar to default one

* Lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-08-16 10:36:45 -04:00
Hannah
2b397791fe
Fix message text overflow onto copy button in gr.Chatbot (#5242)
* increase message padding before copy button

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-16 15:06:34 +01:00
Abubakar Abid
87f1c2b4ac
Allow gr.Interface.from_pipeline() and gr.load() to work within gr.Blocks() (#5231)
* add test

* external

* fixed in external

* add changeset

* close demo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 22:28:19 -07:00
Tom Aarsen
b2f49cfa36
typo: addion -> addition (#5234) 2023-08-15 15:43:11 -04:00
pngwn
fbdad78af4
Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. (#5215)
* lazy load compoennts more granularly

* add changeset

* format

* add changeset

* fix casing

* fix casing

* fix casing

* revert changelog formatting

* add changeset

* revert changelog formatting

* add changeset

* make interactive updates work

* revert changelog stuff

* fix order

* fix static dataframe

* revert demo change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 19:21:41 +01:00
Dawood Khan
3b8053469a
Allows code block in chatbot to scroll horizontally (#5122)
* wrap

* scroll

* add changeset

* fix copy button position

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-15 10:26:54 -04:00
Freddy Boulton
e8fd4e4ec6
Completely hide api page if show_api=False (#5219)
* Add code

* add changeset

* type check

* CHANGELOG

* Update dirty-snails-love.md

* Add test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 10:07:53 -04:00
pngwn
640397075d
add gradio as a devdep of @gradio/lite (#5226)
* add gradio as a devdep of @gradio/lite

* add gradio as a devdep of @gradio/lite

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 10:36:33 +01:00
pngwn
2e61a6612a
pin local dependencies when auto-bumping (#5222)
* pin local dependencies when auto-bumping

* better jsdoc
2023-08-14 21:13:38 +01:00
jonmatthis
ae58f8985c
update to remove deprecation warnings (#5200) 2023-08-14 14:51:10 +01:00
Ray Tri
730f0c1d54
Ensure gradio client works as expected for functions that return nothing. (#5173)
* fixed issue with the js client expecting optional api_info from python gradio runner

* add changeset

* add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-14 14:50:32 +01:00
pngwn
43f3d3d77c
test (#5195)
* test

* add changeset

* ci tweaks

* ci tweaks

* fix

* fix

* delete changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-14 14:39:20 +01:00
renovate[bot]
4844303e8d
chore(deps): update dependency @testing-library/jest-dom to v6 (#5201)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-14 14:36:37 +01:00
Freddy Boulton
24b66e1cff
homepage demo update (#5186)
* homepage demo update

* add changeset

* Fix spacing

* Switch demo order

* asd (#5191)

* asd (#5192)

* homepage demo update

* Fix spacing

* add changeset

* Switch demo order

* remove endocardiogram

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-11 19:04:49 -04:00
pngwn
7334a4b182
Debug ci (#5194)
* ci tweaks

* ci tweaks

* ci tweaks

* ci tweaks
2023-08-11 22:29:59 +01:00
pngwn
2b8846f395
ci debug (#5193)
* ci tweaks

* ci tweaks
2023-08-11 22:00:32 +01:00
pngwn
5adc2fd703
asd (#5192) 2023-08-11 20:24:20 +01:00
pngwn
7d884a98ad
asd (#5191) 2023-08-11 19:41:12 +01:00
pngwn
4d41f8d3d9
Ci fixes asd (#5190)
* tweaks

* tweaks

* asd

* asd
2023-08-11 19:21:39 +01:00
pngwn
0b4642321a
tweaks (#5189)
* tweaks

* tweaks
2023-08-11 18:51:34 +01:00
aliabid94
6fb92b48a9
Fixes audio streaming issues (#5179)
* changes

* changes

* version bump

* version bump

* version

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 13:16:30 -04:00
renovate[bot]
f440e7c3bb
chore(deps): update actions/download-artifact action to v3 (#5184)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-11 13:10:59 -04:00
renovate[bot]
96c5bfd44b
chore(deps): update actions/upload-artifact action to v3 (#5185)
* chore(deps): update actions/upload-artifact action to v3

* fix

* fix

* fix

* fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-11 13:09:34 -04:00
Abubakar Abid
b22e1888fc
Fix the images in the theme builder to use permanent URI (#5188)
* themes-header-image

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 13:01:57 -04:00
pngwn
643442e1a5
generate docs json in ci, reimplement main vs release (#5092)
* fixup site

* fix docs versions

* test ci

* test ci some more

* test ci some more

* test ci some more

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* test

* fix

* add changeset

* fix

* fix

* fix

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* notebook ci

* notebook ci

* more ci

* more ci

* update changeset

* update changeset

* update changeset

* fix site

* fix

* fix

* fix

* fix

* fix ci

* render mising pages

* remove changeset

* fix path

* fix workflows

* fix workflows

* fix workflows

* fix comment

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 15:54:56 +01:00
Freddy Boulton
3c00f0fbfb
Install client in PR Build (#5178)
* Modify ci

* Add quotes

* Modify comment

* Fix comment

* reverse order
2023-08-11 09:32:01 -04:00
Abubakar Abid
ade93a893e
fix toml (#5175) 2023-08-10 17:35:53 -04:00
pngwn
9d1bd28bdf
chore: update versions (#5038)
* chore: update versions

* update actions

* update changelog

* other changelgo

* extra

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-10 16:59:00 -04:00
Lucain
947d615db6
Sign in with Hugging Face (OAuth support) (#4943)
* first draft

* debug

* add print

* working oauth

* inject OAuth profile + enable OAuth when expected + some doc

* add changeset

* mypy

* opt

* open in a new tab only from iframe

* msg

* add changeset

* Apply suggestions from code review

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

* fix injection + gr.Error

* allow third party cookie when possible

* add button to sign in/sign out button

* feedback changes

* oauth as optional dependency

* disable login/logout buttons locally

* nothing

* a bit of documentation

* Add tests for Login/Logout buttons

* Apply suggestions from code review

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

* mention required dependencies

* fix package

* fix tests

* fix windows tests as well

* Fake profile on local debug

* doc

* fix tets

* lint

* fix test

* test buttons

* login button fix

* lint

* fix final tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-08-10 15:12:40 -04:00
Yuvraj Sharma
987725cf6a
Concurrency count rephrase (#5151)
* Create Gradio_ONNX_on_Hugging_Face.md

* add titles and related spaces

* add clearer description

* add gradio description

* add contribution guide

* add spaces description

* add onnx models description

* first version of document related to onnx/ort/modelzoo

* rewording

Signed-off-by: jcwchen <jacky82226@gmail.com>

* for review

Signed-off-by: jcwchen <jacky82226@gmail.com>

* spaces

Signed-off-by: jcwchen <jacky82226@gmail.com>

* update Gradio desc

* update spaces description

* update onnx description

* add code example

* update title and tags

* add Spaces demo

* add efficientnet-lite4 description

* add ONNX models tag description

* updated by review; onnx.hub

Signed-off-by: jcwchen <jacky82226@gmail.com>

* download from onnx model zoo

* guide on 4 kinds of interfaces

* interfaces

* changelog

* added demo

* added demos and edited markdown

Added standard and unified interface demos, along with updates to the markdown.

* updated notebooks

Updated notebooks with markdown changes and bug fixes

* Replaced blocks code with interface style code

Updated the unified demo example with Interface style demo to keep in sync with other examples in the guide

* added requirements.txt file

requirements file with torch and transformers library

* Update README.md (#5063)

Fixing the link of building with blocks.

* rephrasing the messaging for concurrency_count and queues

* delete run.ipynb duplicate

* delete duplicate

* Delete run.py

* rephrasing concurrency_count wording

* Update gradio/blocks.py

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

* Update gradio/blocks.py

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

* Update gradio/blocks.py

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

---------

Signed-off-by: jcwchen <jacky82226@gmail.com>
Co-authored-by: AK391 <81195143+AK391@users.noreply.github.com>
Co-authored-by: Chun-Wei Chen <jacky82226@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Esraa Abdelmaksoud <73304837+esraa-abdelmaksoud@users.noreply.github.com>
2023-08-10 20:32:13 +05:30
Jiri Puc
80be7a1ca4
chatbot conversation nodes can contain a copy button (#5125)
* chatbot conversation nodes can contain a copy button

* add changeset

* the newly added chatbot copy message button is now called show_copy_button

* chatbot's Copy component styling improved

* chatbot's Copy component - typing fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-10 10:11:26 -04:00
aliabid94
abec340a54
Share all media content in chat (#5159)
* test

* test

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-09 16:02:57 -07:00
Hannah
144df459a3
Add show_edit_button param to gr.Audio (#5149)
* add show_edit_button param

* add changeset

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 16:38:07 -04:00
Jae-Won Chung
22aa5eba3f
Use font size --text-md for <code> in Chatbot messages (#5137)
* Use --text-md for <code> in Chatbot message

* add changeset

* Update js/chatbot/static/ChatBot.svelte

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-08-09 15:10:45 -04:00
pngwn
8a84506cee
fix changelogs (#5156)
* fix changelogs

* remove changeset
2023-08-09 20:09:56 +01:00
Freddy Boulton
80727bbe2c
Fix dataset features and dataset preview for HuggingFaceDatasetSaver (#5135)
* Add tests

* Use hf token

* lint

* add changeset

* Add empty string for None

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 14:14:12 -04:00
Yuichiro Tachibana (Tsuchiya)
33baf70757
Removed out-dated comment lines (#5146)
* Removed out-dated comment lines

* add changeset

* removed modified package

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-09 13:42:50 -04:00
Freddy Boulton
35856f8b54
Return final output for generators in Client.predict (#5057)
* Add code

* add changeset

* add changeset

* Add feat changeset

* Fix js code snippet

* Fix changelog

* Add test

* Delete code

* Lint

* Make fix for python client

* Make JS client changes

* Add submit line to error

* Changelog

* Lint

* Undo

* Add dual handling

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 13:03:56 -04:00
aliabid94
667875b244
Live audio streaming output (#5077)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 15:08:28 -07:00
Abubakar Abid
cd1353fa3e
Fixes the display of minutes in the video player (#5140)
* video timestamp

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 17:31:51 -04:00
Abubakar Abid
0dc49b4c51
Add support for async functions and async generators to gr.ChatInterface (#5116)
* add support for async functions and iterators to ChatInterface

* fix api

* added support to examples

* add tests

* chat

* add changeset

* typing

* chat interface

* anyio

* anyio generator

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 15:57:55 -04:00