Abubakar Abid
7c5fec3a26
Use root url for monitoring url ( #8506 )
...
* use root url for monitoring url
* add changeset
* format
* add unit test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-11 02:25:03 -07:00
pngwn
546d14e4f2
add test + demo ( #8524 )
2024-06-10 21:33:28 +01:00
pngwn
bdaa678d0c
add handle_file docs ( #8522 )
2024-06-10 20:16:55 +01:00
pngwn
595ecf35da
Add build target option to the custom component gradio.config.js
file ( #8520 )
2024-06-10 20:16:41 +01:00
Ali Abdalla
de6aa2b676
Add helper classes to docs ( #8516 )
...
* add brush and eraser to imade editor
* add waveformoptions
* formatting
* add changeset
* formatting backend
* fix event matrix
* fixes
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-10 09:05:57 -07:00
pngwn
18a5e0e162
chore: update versions ( #8497 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-09 09:48:41 -07:00
aliabid94
c5f6e7722a
Cache break themes on change ( #8499 )
...
* changes
* add changeset
* 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-06-09 08:31:03 -07:00
Freddy Boulton
2a59bab3bb
Fixes TabbedInterface bug where only first interface events get triggered ( #8504 )
...
* Add code
* add changeset
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-09 08:30:28 -07:00
Ali Abdalla
ffd53fa2dc
Remove broken guide redirect ( #8491 )
...
* remove broken redirect
* add changeset
* remove upload dependency
* add changeset
* lockfile
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-07 13:12:41 -07:00
Freddy Boulton
3a5d56ea7b
Add Client Release Notes to Docs ( #8487 )
...
* Add file
* add changeset
* Add tweaks
* add changeset
* fix bullet stylign
* lint
* Add example
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-06-07 18:21:19 +00:00
pngwn
a2cd8a9838
chore: update versions ( #8486 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-06 08:37:53 -07:00
aliabid94
73e11087a0
Adds a monitoring dashboard to Gradio apps that can be used to view usage ( #8478 )
...
* changes
* add changeset
* 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-06-06 08:31:22 -07:00
pngwn
f9406b46e3
chore: update versions ( #8482 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-06 08:15:46 -07:00
pngwn
e2271e207d
documentation for @gradio/client ( #8483 )
...
* fix param name
* format
* docs
* add changeset
* Update client/js/README.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* add changeset
* Apply suggestions from code review
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-06-06 14:58:20 +00:00
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
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
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
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
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
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
Hannah
6a1b58cf3e
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>
2024-05-24 00:16:44 +01:00
Abubakar Abid
94a1143686
Add allow-credentials to preflight header ( #8363 )
...
* add allow-credentials to preflight header
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-23 07:21:19 -07:00
Xu Song
33e8babb17
Enable hiding the inline category in HighlightedText with a show_inline_category
argument ( #8355 )
...
* Enable hidding inline_category in HighlightedText
* add changeset
* Update test_highlighted_text.py
* add changeset
* Update gradio/components/highlighted_text.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add story
---------
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>
2024-05-23 09:17:41 +00:00
aliabid94
55f664f297
Add event listener support to render blocks ( #8243 )
...
* 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
---------
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-22 14:51:53 -07:00
Hannah
1f8e5c44e0
Improve URL handling in JS Client ( #8258 )
...
* amend endpoint logic
* add changeset
* improve url joining for local URLs
* handle relative paths
* use join_urls in /info to ensure correct endpoints
* add relative url logic and throw error for node
* tweaks
* remove relative paths support (wont work)
* tweak
* tweak func to throw error and amend tests
* tweak
* accomodate . in space names
* replace error with const msg
* tweak tests with error var
* revert map() to reduce() due to misinterpreted base URL
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-22 18:47:29 +01:00
pngwn
881f0a9e2c
Remove changeset ( #8359 )
...
* fix param name
* format
* fix
2024-05-22 10:10:22 +00:00
renovate[bot]
fe3e03abdc
chore(deps): update dependency iframe-resizer to v5 ( #8347 )
...
* chore(deps): update dependency iframe-resizer to v5
* 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>
2024-05-22 11:06:07 +01:00
Hannah
ab65360804
Allow JS Client to work with authenticated spaces 🍪 ( #8299 )
...
* get cookie from /login and apply to fetch requests in connect + duplicate funcs
* add error msg
* add tests
* improve error msgs
* remove unused var
* add changeset
* remove comment
* add error msg
* add private space test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-22 11:02:56 +01:00
Hannah
2d705bcf74
Add body color to gr.Accordion
( #8284 )
...
* add color to body
* add changeset
* add accordion_text_color var
* change default to body_text_color
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-21 23:52:38 +01:00
pngwn
fe91e10269
chore: update versions ( #8335 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-21 21:01:35 +00:00
pngwn
6d3aa5fa93
Cs fix patch ( #8345 )
...
* fix param name
* format
* patch
2024-05-21 20:44:52 +00:00
Liam Dyer
47012a0c4e
ensure the client correctly handles all binary data ( #8322 )
...
* fix: walk blobs ignoring blobs in arrays directly
* add changeset
* fix function
* add changeset
* address review comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-05-21 20:11:35 +00:00
gtmnayan
82ba397592
add missing orig_name (follow up to #8334 ) ( #8341 )
...
* add missing orig_name (follow up to #8334 )
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-21 20:51:54 +01:00
Freddy Boulton
4dc7fa7cd7
Fix Chatbot, Dataframe, Markdown custom components ( #8339 )
...
* Add code
* add changeset
* ts ignore
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-21 11:11:39 -04:00
aliabid94
35905c5c8f
Cleanup markdown styling ( #8311 )
...
* 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-20 15:36:23 -07:00
Freddy Boulton
f138b4159e
Use Any if JsonValue cannot be imported ( #8336 )
...
* Add fallback
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-20 15:13:17 -04:00
gtmnayan
0236b1ab12
fix: prevent triggering gr.File.select on delete ( #8334 )
...
* fix: prevent triggering gr.File.select on delete
* extract into named function
* go away eslint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-20 13:00:22 +00:00
pngwn
32e2b64042
chore: update versions ( #8320 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-17 14:30:02 -07:00
Abubakar Abid
a71ed8071d
fix clog ( #8321 )
2024-05-17 14:12:39 -07:00
cswamy
9e31697d94
Added image-to-image diffusers pipeline ( #8318 )
...
* fix in external.py
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-17 13:57:05 -07:00
Ali Abdalla
1f9a5f0aa3
Fix bad redirect breaking website build ( #8319 )
...
* fix bad redirect
* add changeset
* second missing slash
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-17 13:44:55 -07:00
Abubakar Abid
8f46556b38
Fix api recorder ( #8247 )
...
* fix api recorder
* add changeset
* call data
* fix
* changes
* add changeset
* changes
* format frontend
* lint
* changes
* format
* add changeset
* changes
* add changeset
* fixes
* add changeset
* fix'
* format
* fixes
* add changeset
* add test
* format
* changes
* fix backend tests
* changes
* format
* fix py tests
* push
* data
* add logging
* remove console log
* fix root
* remove console
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-17 13:37:44 -07:00
pngwn
11b88915d3
chore: update versions ( #8291 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-16 00:23:53 +02:00
Freddy Boulton
ee1e2942e0
Ensure JSON component outputs handled properly in postprocess ( #8292 )
...
* Add code
* Json postprocess
* add changeset
* add changeset
* Fix json tests
* fix flag
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-15 21:38:50 +00:00
pngwn
929d216d49
always create a jwt when connecting to a space if a hf_token is present ( #8296 )
...
* fix param name
* format
* always create a jwt if a hf token is present
* add changeset
* add changeset
* remove throw
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-15 16:20:34 +02:00
Freddy Boulton
4350215348
Link to troubleshooting guide in the custom component loading status ( #8279 )
...
* Add code
* Add code
* add changeset
* Add code
* remove unused style
* add changeset
* Update js/app/src/Index.svelte
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/06_custom-components/06_frequently-asked-questions.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/06_custom-components/06_frequently-asked-questions.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-05-14 23:02:45 +00:00
renovate[bot]
7c81897076
chore(deps): update dependency esbuild to ^0.21.0 ( #8229 )
...
* chore(deps): update dependency esbuild to ^0.21.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>
2024-05-14 13:05:39 -07:00
pngwn
053316dd0f
chore: update versions ( #8286 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-14 12:45:39 +00:00
pngwn
7d9d8eab50
use the correct query param to pass the jwt to the heartbeat event ( #8285 )
...
* fix param name
* format
* fix jwt queryparam
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-14 12:20:07 +00:00
pngwn
ca8864f514
chore: update versions ( #8274 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-13 23:23:49 +00:00
Abubakar Abid
de52f0e5af
Reduce the analytics that are collected in Gradio ( #8263 )
...
* reduce analytics
* add changeset
* mark flaky
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-05-13 23:10:08 +00:00
Freddy Boulton
7e976fd9bf
Send ProcessCompleted message when job is cancelled ( #8260 )
2024-05-13 17:43:25 -04:00
Abubakar Abid
d708ca8fca
Reorganize Guides in a more logical order ( #8262 )
...
* guides reorg
* separate flagging
* examples
* tweak
* Update 01_quickstart.md
* redirect
* redirect
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 20:13:31 +00:00
Yuichiro Tachibana (Tsuchiya)
4ae17a4653
Embedded Lite example apps in the docs ( #8278 )
...
* Disable MDsveX's smartypants option to preserve the Python code embedded in the doc as Lite apps unchanged
* Add Lite embedded apps to 06_gradio-lite-and-transformers-js.md
* add changeset
* Add comments
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 12:08:31 -07:00
Freddy Boulton
719d5962bb
Fix bug where status tracker was the target of pointer events ( #8261 )
...
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 12:06:32 -07:00
Abubakar Abid
a9e1a8ac56
Make exceptions in the Client more specific ( #8264 )
...
* more specific exceptions
* format
* add changeset
* fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 12:06:06 -07:00
Freddy Boulton
0bf3d1a992
Fix bug where client could not connect to apps that had self signed certificates ( #8276 )
...
* Add code
* add changeset
* Cancel request
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 18:22:39 +00:00
pngwn
9a87eb1992
Cs fix client ( #8275 )
...
* fix param name
* format
* fix cs
2024-05-13 15:43:21 +01:00
pngwn
fbf4edde7c
Client fixes ( #8272 )
...
* fix param name
* fix hidden state variable
* pass jwt to heartbeat event
* notebooks
* format
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 15:35:07 +01:00
pngwn
30463c5e15
chore: update versions ( #8225 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-10 19:31:04 +01:00
Hannah
e09b4e8216
Add support for passing keyword args to data
in JS client ( #8197 )
...
* allow passing kwargs to data param
* add changeset
* tweak
* update data usage in client/js readme
* more readme tweaks
* edit codesnippet
* add changeset
* check parameters exist
* add changeset
* test
* remove null check
* remove test
* use api_info
* unit tests
* type tweak
* test
* remove unused vars
* tweak
* import semiver
* tests tweak
* format code snippet
* feedback changes
* format
* typefix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-10 19:46:28 +02:00
Freddy Boulton
c562a3d9a4
Cancel server progress from the python client ( #8245 )
...
* implementation + test
* add changeset
* WIP using events
* Use /cancel route
* Try bumping lite
* add changeset
* Fix stream closing issue
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-10 12:26:39 -04:00
Dawood Khan
bf909bd145
Change upload icon for MultimodalTextbox ( #8236 )
...
* icon
* add changeset
* add changeset
* test fix
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 23:32:28 -04:00
Freddy Boulton
0a6f0a7e02
Fix custom component detection logic in analytics ( #8254 )
...
* Add code
* add changeset
* revert
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 23:49:51 +00:00
Yuichiro Tachibana (Tsuchiya)
32d915aad5
Apply clean_indent() to the file contents specified with <gradio-file> tags ( #8219 )
...
* Apply clean_indent() to the file contents specified with <gradio-file> tags
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 12:49:24 -05:00
Abubakar Abid
52dac637a3
Adds examples_per_page
to gr.ChatInterface
and allows clear_btn
in gr.Interface
to be hidden ( #8244 )
...
* add to and allow setting to in
* docs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 10:23:27 -05:00
Freddy Boulton
9ece050a70
Fix bug where updating a component's value in reload mode would not be shown in UI ( #8227 )
...
* Update code
* add changeset
* lint
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 10:05:27 -04:00
pngwn
22df61a26a
Client node fix ( #8252 )
...
* fix client in node
* run all client tests in ci
* add changeset
* fix types
* add changeset
* format
* types
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 12:06:28 +01:00
Abubakar Abid
05fe4918c0
Allow Spaces with .success()
to be gr.load
-ed ( #8242 )
...
* fix success in gr.load
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-08 19:34:23 -05:00
Freddy Boulton
6ee1f1f721
Display all custom components in the gallery ( #8224 )
...
* Add code
* add changeset
* restore pnpm lock
* Empty
* new lockfile
* pin 9.0
* Test
* Fix action
* add changeset
* Update tests-js.yml
* remove limit
* revert pnpm-lock
* add changeset
* fix template issue
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-05-07 12:58:33 -04:00
Ali Abdalla
f176e1b509
Convert all demos on docs to lite ( #8220 )
...
* use lite for demos
* styling
* formatting
* add changeset
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-06 18:57:30 -07:00
renovate[bot]
892181b4fd
chore(deps): update dependency @types/prismjs to v1.26.4 ( #8226 )
...
* chore(deps): update dependency @types/prismjs to v1.26.4
* 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>
2024-05-06 19:58:12 -04:00
aliabid94
5436031f92
Render decorator 2 ( #8110 )
...
* 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
* remove console log
* changes
* changes
* 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-05-06 08:36:07 -07:00
pngwn
be2b1e1261
chore: update versions ( #8172 )
2024-05-03 19:06:05 +01:00
Freddy Boulton
3a6f1a50b2
Only connect to heartbeat if needed ( #8169 )
...
* Add connect_heartbeat field
* fix types
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 13:36:02 -04:00
Hannah
91b5cd6132
remove redundant event source logic ( #8211 )
...
* remove redundant event source logic
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 17:22:55 +01:00
Hannah
b9afe93915
Rename eventSource_Factory
and fetch_implementation
( #8209 )
...
* rename eventSource_factory -> stream_factory + rename event_source -> steam
* rename fetch_implementation -> fetch
* rename fetch to _fetch due to global.fetch conflict
* add changeset
* format
* format
* format
* format
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 15:24:19 +02:00
pngwn
24b2286a22
allow the canvas size to be set on the ImageEditor
( #8127 )
...
* add canvas size kwarg to imageeditor
* add changeset
* fix tests
* fix cropsize
* changes
* notebooks
* update docstrings
* fix type
* fix undefined dimensions
* Update image_editor.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix type
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-03 10:55:19 +01:00
renovate[bot]
f5b710c919
chore(deps): update dependency eslint to v9 ( #8121 )
...
* chore(deps): update dependency eslint to v9
* update deps + fix things
* add changeset
* fix preview
* add changeset
* lockfile
* format
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 09:57:08 +01:00
Yuichiro Tachibana (Tsuchiya)
1435d1d2dc
Extend Interface.from_pipeline() to support Transformers.js.py pipelines on Lite ( #8052 )
...
* Extend Interface.from_pipeline() to support Transformers.js.py pipelines on Lite (wip: only object-detection in this commit)
* add changeset
* Add image-classification and image-segmentation
* Add zero-shot-image-classification and zero-shot-object-detection
* Add document-question-answering
* Add feature-extraction and fill-mask
* Add question-answering and summarization
* Fix an error message
* Add text2text-generation, text-classification, and text-generation
* Add translation andtranslation_xx_to_yy
* Add zero-shot-classification
* Add postprocess_takes_inputs to control the args passed to the postprocess function of each pipeline
* Add topk option to image-classification
* format_backend
* Add audio-classification, automatic-speech-recognition, and zero-shot-audio-classification
* Add image-to-text
* Add token-classification (with JSON component as an output. Is it correct?)
* Ignore import type failure of transformers_js_py
* Add image-feature-extraction
* Add image-to-image
* Add text-to-audio
* Add depth-estimation
* Remove `render=False`
* Reorder the if-blocks following the Transformers.js doc
* Update gradio/pipelines_utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/pipelines_utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix feature-extraction demo
* Fix demo title
* Add guides/08_gradio-clients-and-lite/gradio-lite-and-transformers-js.md without contents
* Rename guides/08_gradio-clients-and-lite/*.md to fix the order
* Use pipeline.model.config._name_or_path for the demo title instead of pipeline.model.config.model_type
* Fix normal Interface.from_pipeline to use pipeline.model.config.name_or_path as the demo title
* Write an article about Gradio-Lite and Transformers.js
* Update the doc
* tweaks
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-03 07:37:51 +00:00
Yuichiro Tachibana (Tsuchiya)
cfc272ff79
Set the show_api flag on Lite ( #8205 )
...
* Set the show_api flag on Lite
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 00:24:49 -07:00
Yuichiro Tachibana (Tsuchiya)
376dfaaa80
Specify the fastapi version on Lite to avoid ujson installation which is not available on Pyodide yet ( #8204 )
...
* Specify the fastapi version on Lite to avoid ujson installation which is not available on Pyodide yet
* add changeset
* Refactoring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 15:12:15 +09:00
Freddy Boulton
449d0e6e14
Refactor analytics to not use api.gradio.app ( #8180 )
...
* Analytics refactor
* add changeset
* add changeset
* Fix wasm?
* Fix python tests'
* Revert changes chrome
* use util function
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-02 20:29:19 -04:00
Freddy Boulton
72039be93a
Support custom components in gr.load ( #8200 )
...
* Add code
* add changeset
* Update fuzzy-mirrors-scream.md
* Update fuzzy-mirrors-scream.md
* Fix tests
* Update .changeset/fuzzy-mirrors-scream.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-02 23:07:45 +00:00
Hannah
cf52ca6a51
Ensure connectivity to private HF spaces with SSE protocol ( #8181 )
...
* add msw setup and initialisation tests
* add changeset
* add eventsource polyfill for node and browser envs
* add changeset
* add changeset
* config tweak
* types
* update eventsource usage
* add changeset
* add walk_and_store_blobs improvements and add tests
* add changeset
* api_info tests
* add direct space URL link tests
* fix tests
* add view_api tests
* add post_message test
* tweak
* add spaces tests
* jwt and protocol tests
* add post_data tests
* test tweaks
* dynamically import eventsource
* revet eventsource imports
* add jwt param to sse requests
* add stream test
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-02 23:05:56 +02:00
Hannah
7aca673b38
Add eventsource polyfill for Node.js and browser environments ( #8118 )
...
* add msw setup and initialisation tests
* add changeset
* add eventsource polyfill for node and browser envs
* add changeset
* add changeset
* config tweak
* types
* update eventsource usage
* add changeset
* add walk_and_store_blobs improvements and add tests
* add changeset
* api_info tests
* add direct space URL link tests
* fix tests
* add view_api tests
* add post_message test
* tweak
* add spaces tests
* jwt and protocol tests
* add post_data tests
* test tweaks
* dynamically import eventsource
* revet eventsource imports
* add node test
* lockfile
* add client test in root pkg file
* lcokfile
* remove eventsource from js/app
* add changeset
* remove ts ignore
* move eventsource polyfill to eventsource factory
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-02 22:49:55 +02:00
Tiger3018
5671ff129a
fix: handling SIGINT correctly in reload.py, single entrance of block_thread in blocks.py ( #8158 )
...
* fix: handling SIGINT, single block_thread and fix popen
* Use pass
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-05-02 17:58:25 +00:00
James Zhou
2471f79527
run python reload only if python file changed ( #8194 )
...
* run python reload only if python file changed
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-05-02 17:42:41 +00:00
Abubakar Abid
39791eb186
Convert sse calls in client from async to sync ( #8182 )
...
* convert sse calls in client from async to sync
* add changeset
* more sync
* lint
* more sync
* fix threadpool
* fix timeouts
* reuse executor
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-01 21:48:49 -07:00
Freddy Boulton
d0a759f3df
Pass Error status in /dev/reload stream ( #8106 )
...
* get error message
* Support multiple clients
* add changeset
* add changeset
* add changeset
* Display in UI
* console.error the python traceback
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-01 22:21:54 +00:00
Ali Abdalla
68dcae512c
Use workspace version for code in _website ( #8189 )
...
* workspace
* add changeset
* remove circular import from preview
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-01 14:17:56 -07:00
pngwn
6a218b4148
rework upload to be a class method + pass client into each component ( #8179 )
...
* rework upload to be a class method + pass client into each component
* add changeset
* Update client/js/src/utils/upload_files.ts
* fix storybook
* review comments
* Apply suggestions from code review
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* format
* ts fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-05-01 14:55:41 +00:00
Yuichiro Tachibana (Tsuchiya)
a81e36967c
Remove hatch installation in js/app/package.json which is no longer needed ( #8174 )
...
* Remove hatch installation in js/app/package.json which is no longer needed
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-01 07:45:38 +09:00
Hannah
bed2f82e22
Implement JS Client tests ( #8109 )
...
* add msw setup and initialisation tests
* add changeset
* add walk_and_store_blobs improvements and add tests
* add changeset
* api_info tests
* add direct space URL link tests
* fix tests
* add view_api tests
* add post_message test
* tweak
* add spaces tests
* jwt and protocol tests
* add post_data tests
* test tweaks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-30 18:50:38 +02:00
Freddy Boulton
08b4e61723
Add ETag to /custom_component
route to control browser caching ( #8170 )
...
* Add code
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-30 10:22:28 -04:00
Yuichiro Tachibana (Tsuchiya)
611c9273a3
Lite wheel optimization ( #7855 )
...
* Add `pull_request.branches.main` as a trigger of the `publish` workflow
* [WIP] Comment out the publish steps
* Package and upload the NPM package for debug
* Skip the copy_frontend.py hook in the Lite build
* add changeset
* [WIP] Show gradio files
* [WIP] Show gradio files
* Comment out installing the gradio and gradio_client libraries
* Restore installing gradio_client because it's used by `python js/_website/generate_jsons/generate.py` that follows
* Restore installing gradio because it's used by `python js/_website/generate_jsons/generate.py` that follows
* Add code
* Revert "[WIP] Show gradio files"
This reverts commit e15fef29bd14671576e64d94d3b844786ebe7e83.
* Build the gradio wheel with the custom lite target
* add changeset
* Revert "[WIP] Show gradio files"
This reverts commit aef053f9caad203c7e1bbfa15e9f9e536f77442a.
* Revert "Skip the copy_frontend.py hook in the Lite build"
This reverts commit ca296d0e4e169adbb6af3705561869aa8c9037b7.
* Update .github/actions/install-frontend-deps/action.yml for hatch installation
* [WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch
* Revert "[WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch"
This reverts commit 571823b4a05f7e41e0b3731d51c5bd86b2e17ddc.
* Comment-in lines in publish.yml
* Move Lite build from publish.yml to deploy-spaces.yml
* Use the build_lite option of install-all-deps instead of running the build command
* [TMP] Change the branch of action files
* Fix the hatch Lite build setting
* Return pnpm pack to deploy-space
* Revert "[TMP] Change the branch of action files"
This reverts commit fe4e1c8f210eb21ac7ee1bd4b219d35e1ae84c85.
* Remove dependencies for lite build
* [TMP] Change the branch of action files
* Revert "Remove dependencies for lite build"
This reverts commit 856a858c1f49d736bfeb056ba0ec7e9bc35af29c.
* Install packaging>=23.2
* [TMP] Show packaging version
* Fix pip install
* Fix
* Uninstall packaging once
* Use `pip install -U` instead of uninstalling the exiting version
* Revert "[TMP] Show packaging version"
This reverts commit 910b6bbde3dc8777c051bd5576813913d57959f7.
* Add `-U` flag
* Set packaging version as >=23.2
* Revert the changes on pip install
* Set packaging version as >=23.2 in requirements.txt
* Revert "Set packaging version as >=23.2"
This reverts commit 8aa77c8930815e69d7256886cad88b6da8361069.
* Fix hook name
* Revert "Set packaging version as >=23.2 in requirements.txt"
This reverts commit fbd605cbfb5d06706eacc0648a2e9d7816c9de1f.
* Revert "Revert the changes on pip install"
This reverts commit 81ff38a660635fce9cb17862a2072e4d169c3466.
* Add comments
* Revert "[TMP] Change the branch of action files"
This reverts commit 0d6aa48d75a842db9b3987212deffedb0c0ca51d.
* Revert the trigger of .github/workflows/deploy-spaces.yml
* Remove unused `node_auth_token` and `npm_token` inputs from the `install-all-deps` action
* [TMP] Trigger CI based on this PR
* Remove packging installation
* Revert "Remove packging installation"
This reverts commit 4a4f18de3a
.
* Revert "[TMP] Trigger CI based on this PR"
This reverts commit 6cea830c8e
.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-04-30 03:18:13 +00:00
Simon Duerr
989fe2566f
Make guide for tailwind more verbose ( #8152 )
2024-04-30 03:35:22 +01:00
pngwn
d9afb0ff32
chore: update versions ( #8147 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-26 19:17:13 +01:00
pngwn
7ba2780dc0
fix missing dependencies for @gradio/preview
( #8144 )
...
* mopre fix
* add changeset
* add changeset
* fix lockfile
* fix all
* Update .changeset/silent-cases-brush.md
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-26 17:45:29 +00:00
pngwn
cbbb44283b
chore: update versions ( #8143 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-26 14:07:47 +00:00
pngwn
44eb8ac6c3
ensure @gradio/preview dist files are published ( #8142 )
...
* fix build again
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-26 13:53:21 +00:00
pngwn
020c65e8e1
chore: update versions ( #8141 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-26 12:53:44 +00:00
pngwn
0d41b221dc
fix publish build ( #8140 )
...
* fix publish build
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-26 13:38:53 +01:00
pngwn
dfd03f38bd
chore: update versions ( #8069 )
...
* chore: update versions
* Revert @gradio/code
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-04-25 23:08:27 +00:00
Yuichiro Tachibana (Tsuchiya)
595ebf74c5
Cache an error from app.submit() and show it on frontend ( #8115 )
...
* Cache an error from app.submit() and show it on frontend
* Fix typing
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-25 22:26:06 +01:00
Freddy Boulton
0efd72e608
Add Analytics for custom components ( #8130 )
...
* Analytics
* add changeset
* add changeset
* Add code
* Modify pnpm
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-25 20:51:50 +00:00
pngwn
15a7106a36
allow custom component authors to provide custom vite plugins and svelte preprocessors ( #6787 )
2024-04-25 19:58:42 +01:00
aliabid94
2e469a5f99
Using keys to preserve values between reloads ( #8056 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* add changeset
* rev pn
* 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-04-25 11:25:53 -07:00
pngwn
0a42e96537
Allow users to template the ImageEditor
when using custom components ( #8133 )
...
* fix image editor template for cc
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-25 17:08:14 +00:00
Yuichiro Tachibana (Tsuchiya)
937c858371
Use orjson to serialize dict including np.array ( #8041 )
...
* Use orjson to serialize dict including np.array
* add changeset
* Update json_component demo and add an E2E test using it
* Rename demo/json_component -> demo/json_component_blocks
* Add json_component_interface demo and an E2E test using it
* Fix to await assertion promises
* Revert renaming of json_component demo
* add changeset
* Rename js/app/test/json_component_blocks.spec.ts -> js/app/test/json_component.spec.ts
* Revert changes in routes.py and add orjson to json_component.py
* Update gr.Checkbox.postprocess to ensure a bool value is returned
* add changeset
* Remove the if-block in gr.Checkbox.postprocess handling NumPy arrays as they are not reasonable values to be interpreted as checkbox's value
* Update gr.JSON's docstring
* Add test/components/test_json_component.py
* Remove JSON component E2E tests
* Update gr.JSON's docstring
* docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-25 16:13:01 +09:00
pngwn
e089e4cb4a
update dependencies ( #8122 )
...
* updates
* add changeset
* changeset
* changeset
* types
* fix types
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-24 23:55:14 +01:00
Freddy Boulton
38a5482df4
Be able to link to a custom component in the gallery directly ( #8119 )
...
* take a stab
* fix code
* add changeset
* revert lock
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-24 17:55:48 -04:00
Freddy Boulton
68640358fe
Add session hash to gr request ( #8117 )
...
* Add code
* add changeset
* Improve docs'
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-24 15:29:32 -04:00
Abubakar Abid
487db7b5d5
Respect auth_dependency
parameter in launch()
( #8097 )
...
* respect auth dependency provided in launch()
* add changeset
* format
* add changeset
* changes
* fix lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 14:26:19 -07:00
Abubakar Abid
cbf2d4ec51
fix typo from #8105 ( #8107 )
...
* js docs
* changes
* fix typo
2024-04-23 20:34:20 +00:00
Ali Abdalla
17e83c958e
Docs Reorg and Intro Page ( #8061 )
...
* 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
* add changeset
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* styling changes
* formatting
* fix build
* rounded corners on buttons
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-23 13:33:45 -07:00
Abubakar Abid
006fa3c6d0
improve the documentation for js
parameter in Blocks
, Interface
, ChatInterface
( #8105 )
...
* js docs
* changes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 13:16:54 -07:00
Abubakar Abid
cbdfbdfc97
upgrade ruff
test dependency to ruff==0.4.1
( #8100 )
...
* upgrade ruff==0.4.1
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 09:16:58 -07:00
Freddy Boulton
32cfa614d6
Remove auto-created files from gradio cc publish
and other tweaks ( #8040 )
...
* Change flow
* add changeset
* Add readme
* Fix twine issue and artifacts
* add changeset
* Update gradio/cli/commands/components/publish.py
Co-authored-by: Lucain <lucainp@gmail.com>
* Upload gitignore file + HfAPI tweaks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Lucain <lucainp@gmail.com>
2024-04-23 10:57:20 -04:00
Yuichiro Tachibana (Tsuchiya)
5bf61cb15b
Hide the scroll bar in WaveformControls when it's not necessary ( #8065 )
...
* Hide the scroll bar in WaveformControls when it's not necessary
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 13:27:39 +09:00
Yuichiro Tachibana (Tsuchiya)
d665f40970
Fix custom JS function caller to concat the outputs of a dep to the inputs as the arguments ( #8051 )
...
* Fix custom JS function caller to concat the outputs of a dep to the inputs as the arguments
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 13:26:34 +09:00
aliabid94
91a7a31cd1
Store configs per session in the backend ( #8030 )
...
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changeas
* add changeset
* unrelated fix
* 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-04-22 11:20:05 -07:00
renovate[bot]
659d3c51ae
chore(deps): update dependency iframe-resizer to v4.3.11 ( #8092 )
...
* chore(deps): update dependency iframe-resizer to v4.3.11
* 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>
2024-04-22 09:35:35 -07:00
Lucain
ac30e07f92
[HF OAuth] Logout user if oauth token has expired ( #8093 )
...
* Logout user if oauth token has expired
* add changeset
* add changeset
* mark flaky test as flaky
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-22 08:18:04 -07:00
Abubakar Abid
b50a67defe
Fix GRADIO_CACHE_EXAMPLES
environment variable to only take effect if fn
and outputs
parameters are provided ( #8087 )
...
* lazy cache fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-21 11:39:48 -07:00
Hannah
1c99570f3c
Adjust View Api
container z-index
( #8084 )
...
* update z-index to layer-top
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-20 04:09:06 +02:00
pngwn
1128f81478
fix changesets ( #8085 )
2024-04-19 20:30:51 -04:00
pngwn
624f9b9477
make gradio dev tools a local dependency rather than bundling ( #8066 )
2024-04-19 18:41:40 -04:00
Yuichiro Tachibana (Tsuchiya)
568eeb26a9
Fix gr.Interface.from_pipeline()
to allow audio uploads and to display classification labels correctly ( #8080 )
...
* Allow audio file inputs
* Stop comma-splitting label texts
* add changeset
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-20 06:55:38 +09:00
Hannah
450b8cc898
Refactor JS Client ( #7646 )
...
* initial setup
* fix hf token prefix
* warnings + error handling
* implement stream, predict and submit
* update blocks with new client
* add changeset
* temp comment
* add changeset
* add sse_v3 chages
* imrpove typing, reimplement websocket logic
* refactor zerogpu logic
* integrate fetch_implemenation
* wasm changes
* tweaks
* tscheck fixes
* type fixes
* test
* test import tweaks
* test
* package.json
* improve typing + config
* config tweak
* remove fetch-mock
* pnpm lock
* config
* remove module
* tweak
* tweak
* fix config
* test
* test
* lockfile
* fix types
* more config tweaks
* type fixes
* formatting
* fix typing
* formatting
* type fixes
* test
* lockfile
* revert comment
* package.json
* tweak
* formatting
* test
* revert ts removal
* remove comments + logic fixes
* type fix
* formatting
* test
* stream logic changes
* fix test
* revert comments
* fix streaming test
* stream tweak
* data typing
* fix wasm fetch
* client typing tweaks
* more fixes + typing improvements
* move functions
* event_source tweaks
* cleanup
* add hardware types and cleanup jwt
* improve api info typing
* add await client() backwards compatiblity
* rename create to connect and move duplicate logic
* Update `Client` usage examples (#8003 )
* update client examples
* remove test data
* fix types
* remove types changes
* client -> Client.create
* Update client/js/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update client/js/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* update duplicate docs
* attempt to update cn docs
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* type improvements and config error handling
* fix image editor issue
* Merge branch 'main' into refactor-client
* improve typing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-19 23:36:13 +02:00
Yuichiro Tachibana (Tsuchiya)
0fb058ec23
Fix the Lite custom element parser so it doesn't add the .code option when the entrypoint file is already specified ( #8067 )
...
* Fix the Lite custom element parser so it doesn't add the .code option when the entrypoint file is already specified
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-20 06:26:42 +09:00
Yuichiro Tachibana (Tsuchiya)
176a8a4d71
Fix Label component's value change detection to avoid infinite loop dispatching the change event ( #8054 )
...
* Fix Label component's value change detection to avoid infinite loop dispatching the change event
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-20 05:43:10 +09:00
3210448723
d7461aab51
Fix an encoding issue in gradio/components/code.py ( #8077 )
...
* Fix an enconding issue in gradio/components/code.py
Changes Made:
Modified the postprocess function in gradio/components/code.py to handle file encoding properly.
Added encoding="utf-8" parameter to the open function when reading code files. I hardcoded UTF-8 because I couldn't figure out how to specify the encoding, similar to the fix in gradio-app#8075. My issue is gradio-app#8076
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-19 16:05:55 -04:00
Freddy Boulton
2afca65419
Add max_file_size
parameter to launch()
that limits the size of files that can be uploaded in the Gradio app ( #7909 )
...
* File size limits
* Implementation
* add changeset
* Fix tests
* python client support
* lint
* fix test
* lint
* add changeset
* Set at the blocks level
* add changeset
* type check
* format
* lint
* lint
* Delete files as soon as they're encountered
* fix tests
* type hint 🙄
* Fix tests
* Fix below limit test
* add changeset
* Fix tests
* Add client file
* revert loop code
* Add to guides
* Pass in via gradio component
* add changeset
* Update loading status
* Make errors closeable
* add changeset
* Add code
* Lint
* Changelog highlight
* Fix i18n in storybook
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-19 15:38:53 -04:00
Toru Suzuki
5d9db89aa6
Fix causing Hot Reload ( #8070 ) ( #8075 )
...
* Fix bug causing Hot Reload failure in code containing non-English languages due to missing encoding specification (#8070 )
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-19 12:44:18 -04:00
Yuichiro Tachibana (Tsuchiya)
72f4ca88ab
Fix gr.Label
styling and a11y markup ( #8063 )
...
* Set `text-align: left` to the texts in the Label component
* Remove unnecessary if-block, which is inside another if-block with the same condition
* Fix the accessibility markup
* add changeset
* add changeset
* Add Label.stories.svelte
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-18 15:37:48 -07:00
pngwn
ddc5d3866c
chore: update versions ( #7992 )
...
* chore: update versions
* changeset
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 18:09:10 +00:00
pngwn
79d5285f0e
fix ( #8064 )
2024-04-18 13:53:39 -04:00
renovate[bot]
cecd6e4c4a
Update dependency iframe-resizer to v4.3.10 ( #8062 )
...
* Update dependency iframe-resizer to v4.3.10
* 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>
2024-04-18 10:18:29 -07:00
pngwn
074ce3805a
ensure the ImageEditor
works correctly with layers and change
events ( #8059 )
...
* stuff
* fix layrs
* add changeset
* lint
* ensure a default image can be passed when sources list is empty
* fix loading status
* add layers option to disable layer ui
* types
* fix tests
* cleanup
* cleanup
* notebooks
* fix composite
* fix
* fix trash icon
* add changeset
* fix layer bg
* fix error display
* notebooks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-18 15:55:00 +00:00
pngwn
92139f3d7d
refresh the ImageEditor
UI ( #8042 )
...
* changes
* icons
* asd
* add changeset
* ui
* fix empty text position
* fix button toggle
* cleanup
* add changeset
* lint
* fix test
* fix again
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-17 16:45:35 -04:00
Ernie Chu
d6c289b346
round [x, y, w, h] before cropping to avoid unexpected interpolation on pixel values ( #8046 )
2024-04-17 21:34:01 +02:00
Jannis Schönleber
0424c759d8
Update typer
to drop [all]
as it is no longer needed ( #8050 )
...
* Update `typer` to drop `[all]` as it is no longer needed
Source: https://typer.tiangolo.com/release-notes/#0121
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-17 19:01:17 +00:00
Yuichiro Tachibana (Tsuchiya)
522daf787a
Patch async_save_url_to_cache
for Lite ( #8026 )
...
* Update `async_save_url_to_cache` to work on Wasm
* Refactoring `save_url_to_cache`
* add changeset
* Fix
* Use pyodide.http as a custom transport of httpx
* Use urllib3 as a custom transport of httpx to make sync http requests
* Add an E2E test case to detect the bugs on remote resource caching
* add changeset
* Add image_remote_url E2E test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-17 03:54:34 +09:00
Dawood Khan
55ef4a52c3
Fixes Chatbot Image Sizing ( #8025 )
...
* fix
* add changeset
* fix
* notebook fix
* clean
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-16 16:38:20 +02:00
Yuichiro Tachibana (Tsuchiya)
c9ddd847d6
Update the Lite custom element parser ( #7975 )
...
* Update the Lite custom element parser to deal with the text inside `<gradio-lite>` when there is no `<gradio-code>` elements, which works with other custom elements like `<gradio-requirements>`
* add changeset
* Remove `.trim()`
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-16 07:19:02 +09:00
hrrbay
2a5cb97824
ensure ImageEditor
always draws at the correct position ( #7959 )
...
* reset layers on dimension change
* add changeset
* resets only if layer has dimension missmatch
* fix formatting
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-04-15 21:47:09 +00:00
pngwn
6fafce0670
ensure maps are correctly shallow cloned when updating state ( #8028 )
...
* ensure maps are correctly shallow cloned when updating state
* cleanup
* add changeset
* fix test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-15 17:26:15 -04:00
pngwn
dbb7373dde
ensure ImageEditor
events work as expected ( #7845 )
...
* changes
* changes
* more fix
* more fix
* add changeset
* fix initial crop
* fix format
* fix format
* fix formats
* faster?
* race condition
* fixes + test
* fix type?
* notebooks
* fix type
* change demo
* add changeset
* fix type
* fix type
* fix type again
* fix type again again
* lint
* lint again
* fix test
* tests
* fix
* tests
* address comments
* fix notebooks
* fix tests
* fix stories
* fix webcam ui
* cleanup
* add changeset
* fix input event
* add format param + fix input event
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-15 20:16:07 +00:00
Lucain
a0c2848ab5
Fix internal server error in HF OAuth workflow ( #8000 )
...
* Fix internal server error in HF OAuth workflow
* add changeset
* finally working
* 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-04-14 17:08:50 -05:00
Yuichiro Tachibana (Tsuchiya)
f17d1a0a6f
Add an explicit dependency of urllib3~=2.0
and update processing_utils.save_url_to_cache
to use urllib3
for Lite support ( #8011 )
...
* Add an explicit dependency of `urllib3` and update `processing_utils.save_url_to_cache` to use `urllib3` for Lite support
* add changeset
* Update requirements.txt
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add changeset
* update test requirements
* update test reqs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-14 17:46:55 +00:00
Sc077y
e10ec6a612
Fix multimode interface double box on file upload ( #8014 )
...
* fix(chat_interface.py): fix 'submit_btn' not being set to 'None' when an instance of 'gr.MultimodalTextbox' is passed to 'textbox' argument of 'ChatInterface'
* fix typo
* add changeset
* fix(chat_interface.py): fix 'container' glitch for multimodal interface
* fix(chat_interface.py): fix bug where empty string is added to history when only a file or more was provided
* fix prior commit
* add changeset
* fix lines interchanged
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-04-12 19:37:16 -04:00
Michael
299c87c477
Document that show_copy_button in gr.Textbox is not visible when show_label=False ( #8012 )
...
* Document that show_copy_button in gr.Textbox is not visible when show_label=False
Remove dict_to_dataclass since its not used
* add changeset
* tweak wording
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-12 18:17:19 +00:00
aliabid94
06bdf0eddf
Restore chatbot formatting ( #7998 )
...
* 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>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-11 22:40:08 +00:00
Freddy Boulton
8903415e49
Add show_progress prop to Upload Component to bring back upload progress animation ( #8002 )
...
* Add show_progress prop
* add changeset
* Add code
* skip for now
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-11 15:30:30 -07:00
cocktailpeanut
05f935c8d8
GRADIO_SHARE Environment Variable ( #7986 )
...
* GRADIO_SHARE Environment Variable
An environment variable to force `share=True` when launching gradio, regardless of what was passed in as argument.
Useful for taking any Gradio-powered app and making them run with the gradio.live link WITHOUT having to update the code.
* make it work for both share=True and share=False
* correct parsing
- `"GRADIO_SHARE": "0"` => `False`
- `"GRADIO_SHARE": "1"` => `True`
* comment
* Apply GRADIO_SHARE only if it's not specified in code.
* one line
* remove line
* add changeset
* included in docstring
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-11 10:29:22 -04:00
Freddy Boulton
c1df2f818c
Fix example loading for custom components ( #7981 )
...
* format
* add changeset
* add changeset
* Update component
* Add tests
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-10 17:52:41 -04:00
Yuichiro Tachibana (Tsuchiya)
79e0aa81c9
Fix heartbeat in the js client to be Lite compatible ( #7974 )
...
* Fix heartbeat in the js client to be Lite compatible
* add changeset
* add changeset
* Stop assigning the EventSource instance to a variable at heartbeat
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-10 23:13:12 +09:00
Lucain
5f0248e797
When authenticating with HF OAuth, stay in same tab ( #7887 )
...
* OAuth: stay in same tab
* add changeset
* add changeset
* typo
* scroll
* add changeset
* lint
* test
* test with timeout
* log
* new test
* fix origin in postMessage
* with timeout
* shoud be fine
* lint
* lint
* remove logs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-10 14:15:26 +01:00
pngwn
b561a27816
chore: update versions ( #7914 )
2024-04-08 20:07:24 +01:00
Scott Davidson
1a7851c512
Fix handling of single font name in theme ( #7967 )
...
* Fix handling of single font name in theme
Previous check failed because `str` is an instance of Iterable so was never correctly wrapped in `[...]`. Instead, providing a single font such as "Arial" would result in a font list of "A, r, i, a, l" in the bundled CSS.
* Handle single fonts.Font instance correctly
* add changeset
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-04-08 11:52:56 -07:00
aliabid94
7c9a964ac6
Fix programmatic tab selection ( #7916 )
...
* changes
* changes
* add changeset
* changes
* add changeset
* 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: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-08 11:34:25 -07:00