Commit Graph

5 Commits

Author SHA1 Message Date
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
pngwn
643442e1a5
generate docs json in ci, reimplement main vs release (#5092)
* fixup site

* fix docs versions

* test ci

* test ci some more

* test ci some more

* test ci some more

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* test

* fix

* add changeset

* fix

* fix

* fix

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* notebook ci

* notebook ci

* more ci

* more ci

* update changeset

* update changeset

* update changeset

* fix site

* fix

* fix

* fix

* fix

* fix ci

* render mising pages

* remove changeset

* fix path

* fix workflows

* fix workflows

* fix workflows

* fix comment

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 15:54:56 +01:00
pngwn
2dcc0845e6
fix hidden error toast (#4712)
* fix hidden error toast

* fix

* try this

* try this

* fix ts

* cleanup
2023-06-28 22:52:12 +01:00
aliabid94
0909c35102
Duplicate spaces integration into gradio (#4458)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes
2023-06-21 12:25:25 -07:00
pngwn
ae4277a9a8
move files (#3605)
* move files

* commit the rest of the files

* fix lockfile

* fix workflow

* fix type errors

* fix tests

* only run ci when certain files change

* run correct test command in ci

* version

* fix pypi script

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -07:00