pngwn
e1c404da11
setup npm-previews of all packages ( #9118 )
...
* add workflow
* fix pkg jsons
* workflow name
* add changeset
* fix
* add changeset
* fix build command
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-15 12:56:17 +01:00
pngwn
54da6da115
chore: update versions ( #8960 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-08 11:20:08 +01:00
Abubakar Abid
981731acb7
Fix flaky tests and tests on Windows ( #9059 )
...
* fixes
* fix external tests
* lint
* add changeset
* comment
* fix client
* add changeset
* run on pull request label changes
* lint
* file explorer
* format
* format
* fix windows
* changes
* test
* format backend
* fix
* fix test
* fix tests
* fix
* rate limit
* fix
* trigger
* fix flakiness
* test
* reruns
* reqs
* fix functional tests
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-08 01:41:16 -07:00
Abubakar Abid
38b3682c3a
Improvements to FRP client download and usage ( #8968 )
...
* wip
* add changeset
* sha256
* add changeset
* hash
* tunneling
* add changeset
* validate ip address
* format
* vendor in hash func
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-07 00:55:38 +00:00
pngwn
d30432e9c6
harden CI ( #8965 )
...
* test pr
* conditional
* conditional
* conditional
* conditional
* conditional
* changes
* changes
* add changeset
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-05 15:27:26 +01:00
pngwn
008d84b042
chore: update versions ( #8883 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-31 13:27:38 -07:00
evanscho
f7fbd2c237
Bumped websockets version limit ( #8948 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-31 20:07:21 +00:00
valgai
ac132e3cbc
Support the use of custom authentication mechanism, timeouts, and other httpx
parameters in Python Client ( #8862 )
...
* gradio Client now supports the use of custom authentication mechanism with httpx
* Fix formatting issues
* Replace specific parameter `httpx_auth` by a more general parameter `httpx_kwargs`.
* add changeset
* typing
* future
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-23 21:44:00 +00:00
pngwn
70b45f4587
chore: update versions ( #8777 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 13:28:00 -07:00
JacobLinCool
5050b36221
fix: wrong named param check for js client ( #8820 )
...
* fix: wrong named param check for js client
* rearrange type imports
* add changeset
* fix: workaround for undefined endpoint_info
---------
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: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 19:57:22 +01:00
Hannah
9ee6839f94
Change optionality of the data
param in submit
+ predict
( #8816 )
...
* add initialiser to data
* tweak submit
* add changeset
* type fixes
* ruff lint
* fix test
* Revert "fix test"
This reverts commit 5d01b5c95bb19d3a189f98dc3c7df35d8720d414.
* Revert "ruff lint"
This reverts commit 2c8e518a750d25777b9d598c690d33ba394b4670.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 15:47:31 +01:00
Abubakar Abid
0d76169e46
upgrade pyright==1.1.372 ( #8837 )
...
* upgrade typing
* more fixes
* add stubs folder
* add changeset
* fix docstring
* docstring
* type
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 00:21:51 -07:00
Hannah
6073736651
Document FileData
class in docs ( #8757 )
...
* expose class + add docs
* add filedata section
* add changeset
* * add example usage
* expose FileData in Python client
* add changeset
* format
* tweaks
* tweaks
* fix test
* lint
* ruff lint
* lint again
* revert test
* remove desc from schema
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-17 12:23:19 -07:00
pngwn
1b74e214b9
chore: update versions ( #8663 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 11:54:28 -07:00
Freddy Boulton
5e36144232
Add guides for msg format and llm agents ( #8750 )
...
* Add guides
* add changeset
* Add code
* Add code
* Add notebook
* rename msg_format to type
* Fix docs
* notebooks
* missing link
* Update guides
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-12 11:53:28 +00:00
Hannah
1b5b5b0b43
Bind fetch
and stream
in JS client ( #8714 )
...
* bind `fetch` and `stream`
* add changeset
* add tests
* tweak
* fix test
* test
* tweak .close() logic
* add changeset
* format
* change fake word
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 14:35:56 +00:00
pngwn
e834d302e4
ensure @gradio/client
always returns the correct data ( #8716 )
...
* ensure data is alwat returned as expected
* add changeset
* update test data
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 13:15:10 +01:00
pngwn
a6b3c6ce4e
Ensure @gradio/client
's submit
iterator releases as expected ( #8715 )
...
* close the iterator when the prediction stream completes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 12:01:08 +01:00
Freddy Boulton
4221290d84
Support Message API for chatbot and chatinterface ( #8422 )
...
* first commit
* Add code
* Tests + code
* lint
* Add code
* notebook
* add changeset
* type
* Add client test
* type
* Add code
* Chatbot type
* Add code
* test chatbot
* fix e2e test
* js tests
* Consolidate Error and Tool message. Allow Messages in postprocess
* Rename to messages
* fix tests
* notebook clean
* More tests and messages
* add changeset
* notebook
* client test
* Fix issues
* Chatbot docs
* add changeset
* Add image
* Add img tag
* Address comments
* Add code
* Revert chatinterface streaming change. Use title in metadata. Address pngwn comments
* Add code
* changelog highlight
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 11:08:06 +00:00
Abubakar Abid
936c7137a9
Documents auth in the guides, in the view API page, and also types the Blocks.config object ( #8720 )
...
* auth docs
* changes
* add changeset
* add changeset
* add changeset
* type
* changes
* snippets
* import
* add changeset
* changes
* fix typing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-08 18:58:07 -07:00
Hannah
012da05287
Ensure JS client status_callback
functionality works and improve status messages ( #8699 )
...
* * bind handle_space_success
* ensure status callbacks work correctly
* add changeset
* test fixes + refactor
* tweak
* test
* Revert "test"
This reverts commit db1afc40b4510fd3d2b805b49f334eb4e5ca3e47.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-08 12:01:18 +01:00
aliabid94
2943d6d688
Add Timer component ( #8505 )
...
* chagnes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* add docs
* add changeset
* remove demo
* add changeset
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/components/timer.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-28 16:53:44 -07:00
pngwn
12f81fcaed
chore: update versions ( #8622 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-28 12:39:54 -04:00
Hannah
4b6c8b1c00
ensure File
objects are handled in JS client handle_file
( #8649 )
...
* amend `File` datatype logic
* add changeset
* amend test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 16:41:44 +01:00
pngwn
4cfb6eebf6
chore: update versions ( #8523 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 11:54:46 -04:00
Josh Wong
7289c4b036
Add credentials: include and Cookie header to prevent 401 error ( #8600 )
...
* Add credentials: include and Cookie header to prevent 401 error
* FIx formatting
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-24 23:42:03 +01:00
pngwn
900cf25256
Ensure frontend functions work when they don't return a value ( #8521 )
2024-06-21 09:17:10 +01:00
baojianting
a77877f62d
First time loading performance optimization ( #8571 )
...
* performance: add gradio_api_info
* format code
* fix ts check
* fix ts check
* add changeset
* add changeset
* format globals.d.ts
---------
Co-authored-by: jianting.bjt <jianting.bjt@alibaba-inc.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-20 09:38:40 +01:00
Freddy Boulton
7fc0f5149b
Fix reload mode by implementing close
on the client ( #8548 )
...
* Fix reload mode
* add changeset
* reload test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-13 17:35:33 -04:00
Freddy Boulton
c2a0d056d6
Control Display of Error, Info, Warning ( #8489 )
...
* first draft
* handle animation
* No animation
* Add code
* add changeset
* Only use duration
* lint
* lint
* Add docs
* add changeset
* Fix default
* sample usage
* formatting
* Add visible parameters
* float
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-06-11 23:27:59 +00:00
pngwn
bdaa678d0c
add handle_file docs ( #8522 )
2024-06-10 20:16:55 +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
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
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
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
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
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 182045ec7ca9448cbff22621dcc087b8487db8d1.
* Revert "test"
This reverts commit 70e074dfdddc2801d78176654675a076b7d89c1e.
* 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
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
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
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
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