Commit Graph

5528 Commits

Author SHA1 Message Date
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
Sanjaiyan Parthipan
eaa1ce14ac
Enhancing Tamil Translation: Language Refinement 🌟 (#5136)
* improve Tamil vocabulary 🔡

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 15:35:06 -04:00
Hannah
56d2609de9
Reset textbox value to empty string when value is None (#5114)
* reset value to empty string when null

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 14:53:57 -04:00
renovate[bot]
61129052ed
Update dependency esbuild to ^0.19.0 (#5133)
* Update dependency esbuild to ^0.19.0

* 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>
2023-08-08 12:43:34 -04:00
Charles Bensimon
56b02279ce
Set env with MonkeyPatch (#5134) 2023-08-08 12:33:02 -04:00
Charles Bensimon
97d804c748
[Spaces] ZeroGPU Queue fix (#5129)
* Properly set max_size and concurrency_count for ZeroGPU

* ZeroGPU concurrency_count warning

* Test

* add changeset

* Lint

* Sure, typing_extensions is a third-party ..

* Fix and refactor

* Black

* Empty commit

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 12:18:45 -04:00
Ali Abdalla
b84a35b7b9
Add icon and link to DuplicateButton (#5111)
* fix icon/link in duplicatebutton

* add changeset

* add changeset

* add icon/link to duplicate

* add changeset

* jsons

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-07 12:54:36 -04:00
Abubakar Abid
2f3b57a58e
Update typing info for gr.CheckboxGroup and gr.Radio (#5119)
* update typing info for checkboxgroup and radio

* add changeset

* add changeset

* lint

* changeset deleted

* add changeset

* delete package

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-07 11:33:11 -04:00
Hannah
1b017e68f6
Add interactive args to gr.ColorPicker (#5118)
* add interactive args to colorpicker

* add changeset

* add changeset

* add colorpicker stories

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-07 17:25:12 +02:00
sweep-ai[bot]
34f6b22efb
Strip leading and trailing spaces from username in login route (#5104)
* Update gradio/routes.py

* Update test/test_routes.py

* consolidate test

* add changeset

* update sweep yaml

---------

Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@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>
2023-08-04 17:37:34 -04:00
Hannah
37caa2e0fe
Add icon and link params to gr.Button (#5080)
* add icons and link params

* tweak

* add changeset

* prepend icon param with /file=

* prepend icon with /file=

* restore and add button stories

* add changeset

* param description tweak

* tweak param description

* type tweak

* fix i18n in story

* fix formatting

* fix test

* tweak

* fix typo

* fix icon bug

* fix inconsistent width

* remove <a /> target

* styling changes + add story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-04 17:47:20 +02:00
Yuichiro Tachibana (Tsuchiya)
3b9494f5c5
Lite: Fix the analytics module to use asyncio to work in the Wasm env (#5045)
* Fix the analytics module to use asyncio to work in the Wasm env

* add changeset

* add changeset

* Add changeset

* Revert "Add changeset"

This reverts commit 052f2bd737.

* Add the `is_wasm` field to the analytics telemetry

* Restore the initialization code in Blocks.launch() in the Wasm env

* Remove a call of analytics.version_check() in Blocks.launch() in the Wasm mode

* Add a `type: ignore` directive to the line of importing the `pyodide` module

* Fix a test case

* Refactor _do_wasm_analytics_request() and add a unit test for it

* Get the IP address for analytics in the Wasm mode

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-04 09:18:14 -04:00
renovate[bot]
13e4783535
chore(deps): update dependency extendable-media-recorder to v8 (#5085)
* chore(deps): update dependency extendable-media-recorder to v8

* 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>
2023-08-04 08:28:58 -04:00
pngwn
1419538ea7
Refactor component directories (#5074)
* asd

* changes

* fix everything

* cleanup

* add changeset

* fix casing

* lockfile

* fix casing

* fix ci, enable linting

* fix test

* add changeset

* add changeset

* delete changeset

* fix dirs

* fix casing

* fix notebooks

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00
索毅
d7f83823fb
solve how can I config root_path dynamically? #4968 (#5081)
* solve how can I config root_path dynamically? #4968

* add changeset

* fixes

* fixes

* fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 17:00:25 -04:00
Abubakar Abid
67265a5802
Allow supporting >1000 files in gr.File() and gr.UploadButton() (#5075)
* allow supporting >1000 files

* add changeset

* Update client/js/src/client.ts

---------

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