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 db1afc40b4
.
---------
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 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
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
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
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
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
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
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
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
Liam Dyer
4d78f29666
fix: zero gpu auth ignoring hf_token ( #8323 )
2024-05-20 13:58:46 +01: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
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
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