Commit Graph

6849 Commits

Author SHA1 Message Date
pngwn
f8ebacecce
Ensure all status are reported internally when calling predict (#8485)
* fix param name

* format

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-06 14:57:00 +00:00
Abubakar Abid
c79639448c
patch (#8484) 2024-06-06 07:22:02 -07:00
pngwn
b301ce418b
chore: update versions (#8458)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-06 07:06:28 -07:00
Abubakar Abid
41a449383a
fix client flaky tests (#8481)
* fix client flaky tests

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-06 07:05:28 -07:00
Abubakar Abid
925a723e71
Update quick-melons-remain.md (#8480) 2024-06-06 06:48:05 -07:00
Freddy Boulton
7cc0a0c1ab
Client Release Notes (#8468)
* Client Release Notes

* Add code

* migration guide

* Update .changeset/empty-flies-join.md

* Update .changeset/empty-flies-join.md

* Update .changeset/empty-flies-join.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-06 06:21:51 -07:00
Ali Abdalla
8ca93d45dd
Improve design of api recorder (#8473)
* better api recorder buttons

* better banner

* formatting

* add changeset

* add changeset

* fix functional tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-06 12:55:21 +00:00
pngwn
d5a9604930
Fix js client bundle (#8477)
* fix param name

* format

* fix build

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-06 12:39:22 +00:00
pngwn
9d2d6051ca
Change client submit API to be an AsyncIterable and support more platforms (#8451)
* fix param name

* format

* save

* changes

* changes

* fix param name

* format

* switch to async iterable interface

* switch to async iterable interface

* changes

* add changeset

* fix

* fix param name

* format

* fixes

* fix checks

* fix checks

* add changeset

* fix checks

* add changeset

* add changeset

* fix checks

* fix param name

* format

* fix types

* cleanup comments

* add changeset

* fix param name

* format

* changes

* Refactor Cancelling Logic To Use /cancel (#8370)

* Cancel refactor

* add changeset

* add changeset

* types

* Add code

* Fix types

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* fix param name

* format

* changes

* fix

* fix param name

* format

* fix test

* fix notebooks

* fix type

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-06-06 13:16:14 +01:00
Hannah
6447dface4
Improve file handling in JS Client (#8462)
* add handler for URLs, Blobs and Files

* add changeset

* remove NodeBlob

* add local file handling

* handle buffers

* add test

* type tweaks

* fix node test with file

* test

* fix test

* handle nested files

* env tweaks

* tweak

* fix test

* use file instead of blob

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-06 12:56:16 +01:00
aliabid94
8c18114495
changes (#8469)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-06-06 11:08:14 +01:00
Ali Abdalla
a9e6595817
Tweak meta titles and descriptions for clients (#8471)
* tweak title and description for client

* fix title/desc for js client

* formatting

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-05 18:21:35 -07:00
Ali Abdalla
86288993d9
Support Bash in Api Recorder (#8460)
* add bash to api recorder

* formatting

* add changeset

* fix copy bug

* remove current_language from api banner

* add changeset

* use awk and read

* separate over multiple lines

* fix line spacing

* update guide

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-05 23:17:58 +00:00
Freddy Boulton
48eeea4eaa
Refactor Cancelling Logic To Use /cancel (#8370)
* Cancel refactor

* add changeset

* add changeset

* types

* Add code

* Fix types

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-05 15:32:24 -04:00
pngwn
96d8de2312
add delete event to File component (#8417)
* fix param name

* format

* add delete event to File component

* fix

* add changeset

* fix

* fix

* fix

* add changeset

* format

* add changeset

* file file layout

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-05 12:14:10 +00:00
Hannah
63d36fbbf4
Handle gradio apps using state in the JS Client (#8439)
* send `null` for each `state` param in space api

* add changeset

* test

* remove state value from payload from server

* tweak

* test

* test

* Revert "test"

This reverts commit 182045ec7c.

* Revert "test"

This reverts commit 70e074dfdd.

* fixes

* add changeset

* fixes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-06-05 11:53:06 +02:00
Abubakar Abid
5c8915b113
Add cURL to view API Page and add a dedicated Guide (#8445)
* curl docs

* add changeset

* curl

* guide complete

* rename

* more details

* add changeset

* add changeset

* Update guides/08_gradio-clients-and-lite/03_querying-gradio-apps-with-curl.md

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

* Update guides/08_gradio-clients-and-lite/03_querying-gradio-apps-with-curl.md

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

* changes

* add support for curl in view api docs

* add support for files

* format frontend

* lint

* Update js/app/src/api_docs/img/bash.svg

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

* remove api recorder on bash

* fixes

* changes

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-06-05 01:32:13 +00:00
Abubakar Abid
2cd02ff3b7
Remove deprecated parameters from Python Client (#8444)
* deprecate

* add changeset

* file -> handle_file

* more updates

* format

* add changeset

* fix connect

* fix tests

* fix more tests

* remove outdated test

* serialize

* address review comments

* fix dir

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-05 00:26:28 +00:00
pngwn
3dbce6b308
chore: update versions (#8443)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-04 17:07:46 -07:00
Ali Abdalla
881f11c862
Add website banner for clients launch (#8456)
* add banner

* add changeset

* add changeset

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-04 22:55:22 +00:00
Dawood Khan
a970589cf5
Fix multimodal textbox placeholder (#8455)
* fix placeholder

* add changeset

* add changeset

* placeholder spacing fix for other themes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-04 22:25:43 +00:00
aliabid94
4a55157ed9
state.change listener with deep hash check (#8446)
* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* Update guides/04_building-with-blocks/04_dynamic-apps-with-render-decorator.md

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-06-04 14:19:30 -07:00
Abubakar Abid
33c8081aa9
Handle special arguments when extracting parameter names for view API page (#8400)
* fix special args

* add changeset

* format

* ignore typecheck

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-04 08:12:10 -07:00
Freddy Boulton
d393a4a224
Fix type hints for render and on (#8429)
* type hint

* add changeset

* Use union

* type check

* lint

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-03 19:33:25 -04:00
Dawood Khan
341844f04e
Click to preview images in chatbot (#8377)
* click to preview image

* add changeset

* color of svg

* notebook

* fix

* fix

* fix preview bug

* thumbnail spacing

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-03 22:30:24 +00:00
Freddy Boulton
83bdf5c447
Add support for numpy~=2.0 (#8440)
* Add code

* add changeset

* add changeset

* update requirements.txt

* remove np.bool8

* add changeset

* type check

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-03 17:46:45 -04:00
renovate[bot]
3266d2c0f2
chore(deps): update dependency tinyspy to v3 (#8427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 12:05:13 -07:00
Dawood Khan
4795c6e9e9
Fix multimodal textbox styling for certain themes (#8369)
* fix css

* add changeset

* Add `--table-text-color` var to fix body text in `Examples` (#8364)

* add --table-text-color var

* add changeset

* format

* tweak

* add changeset

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Include JS Client package in CI for PR testing (#8362)

* add js client pkg action

* test

* Revert "test"

This reverts commit 575bcfca1b.

* tweaks (#8374)

* chore: update docs.py (#8378)

* chore: update docs.py

Documention -> Documentation

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Fix encoding error (#8381)

* Set orig_name in python client file uploads (#8371)

* Add code

* add changeset

* URL case

---------

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

* Include instructions on starting from someone else's custom component repository (#8386)

* Add guide

* add changeset

* Fix link

* add changeset

* Add code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Fix bug in reload mode equality check. Better equality conversion for state variables (#8385)

* Add code

* Add deep equality

* add changeset

* Add code

* add changeset

* Update gradio/utils.py

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

* Add code

* Add code

* add code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Change z-index of status tracker (#8372)

* change z-index of status tracker

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Add CDN installation to JS docs (#8401)

* add cdn copy

* add changeset

* tweak

* tweak

* add changeset

* Update guides/08_gradio-clients-and-lite/02_getting-started-with-the-js-client.md

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

* remove version from cdn link

* tweak

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Improve rendering (#8398)

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changeas

* changes

* add changeset

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* cganges

* changes

* changes

* changes

* changes

* add changeset

* changes

* chagnes

* changes

* changes

* changes

* changes

* changes

* js

* remove console log

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* chnages

* changes

* cnages

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* Add `state.change` listener (#8297)

* state changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* updates

* changes

* add changeset

* changes

* changes

* add changeset

* fix

* changes

* changes

* changes

* changes

* changes

* 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>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Render decorator documentation (#8409)

* changes

* changes

* add changeset

* fix dependency loop and documentation group

* add changeset

* changes

* fix numbered list

* 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: aliabd <ali.si3luwa@gmail.com>

* Connect heartbeat if state created in render. Also fix config cleanup bug #8407 (#8408)

* Add code

* add changeset

* add changeset

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Model3D right-handed coordinate system (#8376)

* changes (#8411)

Co-authored-by: Ali Abid <aliabid94@gmail.com>

* Editable Docs (#8403)

* docs intro page and guides

* python library docs and js client

* reorg

* changes

* add better hovering

* fix broken version routing

* add redirects and remove duplicate pages

* fix build issues

* fix issues

* formatting

* add changeset

* working templates for all components

* add other pages

* merge

* merge

* changes

* changes

* working from templates

* changes

* refactoring

* changes

* build working

* formatting

* importing meta globs

* add uploading templates to ci

* fixes

* add changeset

* remove fake version

* fix

* ignore

* formatting

* adding render page to docs

* add changeset

* formatting fix

* typo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* chore: update versions (#8348)

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: Xu Song <xusong.vip@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Dylan Ebert <dylan@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2024-06-03 12:53:59 -04:00
Col0ring
1a9ac4bf2b
Fix encoding error in gradio/routes.py (#8435) 2024-06-03 09:45:11 -07:00
pngwn
e4ee5facab
chore: update versions (#8433)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-01 17:47:41 +00:00
pngwn
9909b28364
fix scrolling on spaces (#8431)
* fix param name

* format

* change

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-01 17:33:42 +00:00
pngwn
bc1eff12c1
chore: update versions (#8420)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-30 14:55:23 -07:00
aliabid94
82f5cb4bb0
changes (#8421)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-05-30 14:18:47 -07:00
aliabid94
1a124d95d7
More gr.render content (#8418)
* changes

* Update 04_dynamic-apps-with-render-decorator.md

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-05-30 14:15:35 -07:00
Ali Abdalla
5c6d4c4083
Fixes to Website Demo Upload Script (#8419)
* try except and creating api once

* fix script

* pin hub versin

* remove test demos
2024-05-30 17:07:52 -04:00
aliabid94
227de35298
Fix spaces load error (#8415)
* 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-05-30 13:52:50 -07:00
pngwn
b67f7ff8f9
chore: update versions (#8348) 2024-05-30 00:00:00 +01:00
Ali Abdalla
5efd35c7a0
Editable Docs (#8403)
* docs intro page and guides

* python library docs and js client

* reorg

* changes

* add better hovering

* fix broken version routing

* add redirects and remove duplicate pages

* fix build issues

* fix issues

* formatting

* add changeset

* working templates for all components

* add other pages

* merge

* merge

* changes

* changes

* working from templates

* changes

* refactoring

* changes

* build working

* formatting

* importing meta globs

* add uploading templates to ci

* fixes

* add changeset

* remove fake version

* fix

* ignore

* formatting

* adding render page to docs

* add changeset

* formatting fix

* typo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-29 18:26:54 -04:00
aliabid94
d8fe958816
changes (#8411)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-05-29 15:12:48 -07:00
Dylan Ebert
aebd2e952e
Model3D right-handed coordinate system (#8376) 2024-05-29 22:59:29 +01:00
Freddy Boulton
e86dd01b6e
Connect heartbeat if state created in render. Also fix config cleanup bug #8407 (#8408)
* Add code

* add changeset

* add changeset

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-29 17:49:03 -04:00
aliabid94
8028c33bbc
Render decorator documentation (#8409)
* changes

* changes

* add changeset

* fix dependency loop and documentation group

* add changeset

* changes

* fix numbered list

* 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: aliabd <ali.si3luwa@gmail.com>
2024-05-29 14:13:51 -07:00
aliabid94
945ac837e7
Improve rendering (#8398)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changeas

* changes

* add changeset

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* cganges

* changes

* changes

* changes

* changes

* add changeset

* changes

* chagnes

* changes

* changes

* changes

* changes

* changes

* js

* remove console log

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* chnages

* changes

* cnages

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* Add `state.change` listener (#8297)

* state changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* updates

* changes

* add changeset

* changes

* changes

* add changeset

* fix

* changes

* changes

* changes

* changes

* changes

* 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>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-29 11:24:57 -07:00
Hannah
d078621928
Add CDN installation to JS docs (#8401)
* add cdn copy

* add changeset

* tweak

* tweak

* add changeset

* Update guides/08_gradio-clients-and-lite/02_getting-started-with-the-js-client.md

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

* remove version from cdn link

* tweak

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-29 18:11:29 +00:00
Hannah
89d6a176b3
Change z-index of status tracker (#8372)
* change z-index of status tracker

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-29 18:12:23 +01:00
Freddy Boulton
97ac79bf56
Fix bug in reload mode equality check. Better equality conversion for state variables (#8385)
* Add code

* Add deep equality

* add changeset

* Add code

* add changeset

* Update gradio/utils.py

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

* Add code

* Add code

* add code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-29 10:46:09 -04:00
Freddy Boulton
e738e26a5d
Include instructions on starting from someone else's custom component repository (#8386)
* Add guide

* add changeset

* Fix link

* add changeset

* Add code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-28 19:14:23 +00:00
Freddy Boulton
a373b0edd3
Set orig_name in python client file uploads (#8371)
* Add code

* add changeset

* URL case

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-05-27 11:26:52 -04:00
Xu Song
24ab22d261
Fix encoding error (#8381) 2024-05-27 08:50:47 +00:00
Ikko Eltociear Ashimine
3fbf2e8e70
chore: update docs.py (#8378)
* chore: update docs.py

Documention -> Documentation

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-27 04:50:05 +00:00