aliabid94
280b5697eb
Mobile queue fixes ( #4742 )
...
* changes
* changes
* changes
* changes
* changes
* Styling for error, warning and info toasts (#4603 )
* create abstract toast component for info/warning/error
* add icons
* add light mode theming
* add theme mode check and dark mode styles
* update theme_mode on update
* clean up render of toast content
* replace dynamic css vars with toast type css selectors
* tweak colours
* change error pill border colour to align with toasts
* formatting
* fix failed test
* rename icon files and clean up css
* changes
* changes
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-07 14:39:06 -05:00
pngwn
7fa5e766ce
format ( #4810 )
2023-07-06 18:43:49 +01:00
Ali Abdalla
cd693708cf
Converting the website into sveltekit ( #3437 )
...
* index page
* demos page
* guides gallery page
* guides
* some docs work
* changes
* changes
* docs work
* refactor some to ssr
* more refactoring
* add metatags
* add special docs pages and improve nav
* fix prev next in combining
* add changelog
* Site slugs for new website (#3431 )
* safe slugs for docs
* add slugs to guides
* changes
* add flagging
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* make anchor tags visible on hover
* add anchor tags to docs
* fix @html in codeblocks
* fix demos in guides
* syntax highlighting code in example usage
* fix @html in changelog
* fix contributing lin
* fix assets in guides
* fix broken assets on build
* error page
* fix meta tags updating
* move guides to be /guides/[guide] instead of /[guide]
* add headers to sections and make them linkable - freddy feedback
* add guides section to docs
* tighten width and add second nav bar
* styling second nav bar
* smooth scrolling in docs and guides
* make components clickable in event listener graph
* load latest gradio.js
* menu bar on docs mobile
* scrolling highlight menu and remove base docs page
* vercel
* refactor guides
* fix slugs in docs
* fix < and code formatting in guides
* added search
* redirect all old links
* fix bad merge
* fix paths
* Fix css issue with spaces logo
* add status page link to footer
* add themes to docs
* fix new documentation.py path
* add python client docs
* make docs faster
* add clients ot docs
* colors
* convert to adapter static
* prerender
* fix broken paths in guides
* fix broken slugs
* Aliabd/website sveltekit test (#4572 )
* fixes to paths
* fixes
* typechecking
* fix
* fix
* fix
* types lib
* more type fixes
* extends fix
* typing fix
* typing fix
* json typing fix
* add jsons
* rollup
* tweak
* fix lockfile
* fix maybe
* fix maybe
* changes
* ui functional fix
* oops
* pnpm version
* fix app
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-04 16:33:22 +03:00
aliabid94
6c5427230e
Create Warning, Info modals ( #4518 )
...
* changes
* changes
* changes
* changes
* changes
* Styling for error, warning and info toasts (#4603 )
* create abstract toast component for info/warning/error
* add icons
* add light mode theming
* add theme mode check and dark mode styles
* update theme_mode on update
* clean up render of toast content
* replace dynamic css vars with toast type css selectors
* tweak colours
* change error pill border colour to align with toasts
* formatting
* fix failed test
* rename icon files and clean up css
* changes
* changes
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-03 16:28:39 -05:00
Aarni Koskela
2544e7bd16
URL validation/access fixes ( #4695 )
...
* is_valid_url: share a requests session for performance
* Rename is_valid_url to probe_url (because that makes sense for what it does); add is_http_url_like
* Do not allow encode_url_to_base64 to encode error responses
* Do not allow download_tmp_copy_of_file to download error responses as valid files
* Changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-30 10:25:33 -05:00
Abubakar Abid
409593e9cc
Updates to the API endpoints / docs, and fixing the Theme builder ( #4683 )
...
* view API fixes
* code snippet js
* changelog
* api name false
* examples
* client trigger tests
* fix typecheck
* black
* type
* typing
* typing
* update gif
* type ignore
* added tests
* format
* added test
* test
* fix guides
* snippet
* tests
* fix tests
* add test
* fix typing
* fix test
* remove comments
2023-06-29 14:05:25 -05:00
pngwn
8b0c680d9a
chore: update versions ( #4720 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 15:55:28 +01:00
Yuichiro Tachibana (Tsuchiya)
ab5d1ea0de
Fix the description field of client/js/package.json ( #4717 )
2023-06-29 12:57:46 +01:00
Yuichiro Tachibana (Tsuchiya)
4fbdefe94e
Gradio-lite (Gradio Wasm) ( #4402 )
2023-06-27 08:09:50 +01:00
Freddy Boulton
d1a46f161a
Use Literal Type Hint Where Possible ( #4608 )
...
* Use literal type hint
* Add type hint
* CHANGELOG
* PR review
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-21 15:13:12 -05:00
Freddy Boulton
2e351ec6f2
Fix bug duplicating spaces with default cpu hardware ( #4583 )
...
* Fix bug
* Add CHANGELOG
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-21 14:57:24 -05: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
renovate[bot]
6a92e19a0d
chore(deps): update all non-major dependencies ( #4601 )
...
* chore(deps): update all non-major dependencies
* Update website/homepage/Dockerfile
* changelog
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-21 15:56:10 +01:00
pngwn
7e99ce74c7
chore: update versions ( #4358 )
2023-06-20 14:23:01 +01:00
Freddy Boulton
b7010fa0eb
Only run install steps in backend ci if not previously cached ( #4517 )
...
* dont install if cache
* Fix
* Fix client cache
* Potential fix
* Change key name
* Fix
* Use python command
* Build front-end in lint job
* Install
* Fix
* Build afterward
* Consolidate lint
* trigger ci
* Fix windows
* Use virtualenv
* New try
* Typo
* Fix typp
* Add full path
* Separate Linux and windows steps
* Typos
* shell
* trigger ci
* Fix
* use command
* Use cache for setup python too
* Separate cache for front-end
* trigger ci
* Add Don't lint on windows
* Add if changes
* Delete restore keys
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-16 15:34:06 -04:00
Freddy Boulton
2ed80b74b3
Fix client test that broke ( #4539 )
...
* Fix test
* Fix other test
* Add fix
2023-06-15 18:20:06 -04:00
Abubakar Abid
d65512cb3a
Fix output directory of files in client & when calling Blocks as function ( #4501 )
...
* output dirs
* remove
* remove
* remove
* changelog
* format
* add tests
* docstring
* changelog
* client
* blocks
* fix test
2023-06-14 17:08:10 -05:00
Freddy Boulton
afcc20801e
Deprecate python 3.7 ( #4484 )
...
* Remove versions from 3.7
* CHANGELOG
* from typing import Literal
* Remaning places 3.7
* Last few spots
* Use 3.8 in lint
2023-06-13 21:52:33 -04:00
Abubakar Abid
3d82094de2
Support PAUSED Space status when embedding ( #4438 )
...
* Support paused status
* fix
* changelog
* Update client/js/src/client.ts
Co-authored-by: pngwn <hello@pngwn.io>
* formatting
* added paused space
* formatting
* logs
* added test space, fixes
* Update client/js/src/client.ts
Co-authored-by: pngwn <hello@pngwn.io>
* remove logs
* fix
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-09 02:20:16 -05:00
Freddy Boulton
4a58ccee39
Fix bug where file examples can be corrupted if has multiple extensions ( #4440 )
...
* Fix bug
* Add to changelog
* Add test
* Remove breakpoint
* fix test
* increment version
* update client version req
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 15:05:01 -05:00
WilliamRoyNelson
e364f81ffc
Increase version gradio-client version/changelog ( #4441 )
...
* Increase version gradio-client version/changelog
* req
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 14:18:32 -05:00
Abubakar Abid
d82dfb886d
Fix loading private Spaces ( #4430 )
...
* replace api key with hf_token
* removed extra slash
* changelog
* update notebooks
* lint
* changelog
* changelog
* revert demo
2023-06-07 13:55:05 -05:00
Freddy Boulton
bc6a1fad1c
Call mounted gradio app via api ( #4435 )
...
* Fix bug
* Add changelog
2023-06-06 10:40:56 -05:00
WilliamRoyNelson
20d066c0da
Add pypi classifiers to client pyproject.toml ( #4409 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-05 17:46:35 -05:00
pngwn
0dbd8f7fee
various client refactors + tweaks ( #4357 )
...
* changeset
* Add a type annotation on the `api` variable to which the return value of `view_config()` is assigned, and update the type annotation and exception handling on `view_config` as well (#4311 )
* Remove unnecessary @ts-ignore (#4314 )
* Remove unnecessary Promise wrapping another promise (#4313 )
* Remove unnecessary Promise wrapping another promise
* Remove an error handeler that may remove detailed error stacks
* changeset
* remove changeset
---------
Co-authored-by: pngwn <hello@pngwn.io>
* Stop using `let` for unchanged variables in `client.ts` (#4312 )
* Stop using `let` for unchanged variables in `client.ts`
* fixes
---------
Co-authored-by: pngwn <hello@pngwn.io>
---------
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2023-05-30 11:50:33 +09:00
pngwn
caceb7a5b1
chore: update versions ( #4283 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-29 16:30:54 -07:00
Yuichiro Tachibana (Tsuchiya)
0888175b0e
Fix typo in client/js/README.md ( #4310 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-29 14:04:00 -07:00
Yuichiro Tachibana (Tsuchiya)
b525b122dd
Add overridden type annotations on normalise_file()
to remove @ts-i… ( #4315 )
...
* Add overridden type annotations on `normalise_file()` to remove @ts-ignore, and remove its unnecessary export
* changeset
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-28 19:40:20 -07:00
pngwn
1d0f0a9db0
Ensure error modal display as expected when using the queue ( #4273 )
2023-05-20 00:32:12 +01:00
Freddy Boulton
834afdd303
Temp file fixes ( #4256 )
...
* Fix bug
* Linting
* CHANGELOG
* Add tests
* Update test
* Fix remaining components + add tests
* Fix tests
* Fix tests
* Address comments
2023-05-20 06:22:12 +09:00
pngwn
1151c52535
fix info request in js client ( #4271 )
...
* fix info request in js client
* changelog
2023-05-19 10:58:42 -04:00
Aarni Koskela
9ece3b43b9
Upgrade black to 23.3 ( #4259 )
...
* Upgrade black
* Conservatively upgrade packaging too since it's black's dependency
2023-05-18 11:04:59 -04:00
pngwn
d0e0c81046
chore: update versions ( #4207 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-16 22:57:49 +01:00
pngwn
c3dadaebbe
fix cancels ( #4225 )
...
* fix cancels
* changelog
* refactor to make it work
2023-05-16 22:37:28 +01:00
pngwn
a26e9afde3
Fix client filepaths ( #4202 )
...
* transform returned paths to useful URLs
* changeset
* update app
* revert
* revert
* changelog
* Update client/js/src/client.ts
Co-authored-by: aliabid94 <aabid94@gmail.com>
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-05-16 22:04:51 +01:00
Abubakar Abid
d6c93228d9
Some tweaks to the Client ( #4230 )
...
* parameter names
* tweaks
* separate out serialize
* fix
* changelog
* fix
* fix
* improve test
2023-05-16 14:32:42 -04:00
pngwn
da5b4ee117
Fix semiver import ( #4201 )
2023-05-14 10:42:02 +01:00
pngwn
83134c10eb
client docs tweaks ( #4196 )
...
* ci typo
* fix
* again
* again
* again
* ignore workbench
* small tweaks for publish + docs
2023-05-12 23:24:30 +01:00
pngwn
c723f7f2c9
chore: update versions ( #4188 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-12 22:07:07 +01:00
pngwn
963c2d26ee
3712 js client ( #3899 )
2023-05-12 16:22:25 +01:00
Abubakar Abid
fcf744a4a9
hotfix for test ( #4173 )
...
* hotfix for test
* removed comment
2023-05-11 16:49:41 -05:00
Tom Aarsen
02bd90d7c1
[Docs] Resolve numerous typos ( #4170 )
...
* Resolve numerous typos
* Delete test.py
* Run generate_notebooks
* notebooks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 15:20:41 -05:00
Abubakar Abid
e6198752c6
Adds missing components to gradio client serializing's component mapping ( #4167 )
...
* add missing serialization
* format
* update release note format
* update release note format
* fix test
2023-05-11 11:33:14 -05:00
Abubakar Abid
253410c78d
simplify format of changelog ( #4163 )
2023-05-11 08:11:49 -05:00
Freddy Boulton
3227a9b703
Fix api info for File component ( #4153 )
...
* Fix output file type info
* Fix example inputs
* CHANGELOG
* Update client
* Add test
* Bump version
* Bump min client version
2023-05-10 19:52:07 -04:00
Freddy Boulton
5e2c3c9ed6
Fix python client test ( #4138 )
...
* Fix python client test
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-10 10:13:52 -05:00
Freddy Boulton
a65c4b5927
Bumpt client version ( #4125 )
2023-05-09 12:53:33 -04:00
Freddy Boulton
c7f4a88150
Dont send request to /info
if version before 3.28.3 ( #4109 )
...
* Add code
* Lint
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-08 17:18:28 -04:00
Abubakar Abid
dccf68d914
Removing "State" from view API info ( #4107 )
...
* wip pr
* update client version
* update space fetcher
* changelog, workflow
* fix not flaky tests
* lint
* v2
2023-05-08 15:47:40 -05:00
Freddy Boulton
b66ecff671
[WIP] Language Agnostic Typing in /info
route ( #4039 )
...
* First commit
* All serializers
* Remove output type
* Add route
* Format json
* Modify dropdown and slider choices
* Fix impl
* Lint
* Add tests
* Fix lint
* remove breakpoint
* Tests passing locally
* Format code
* Address comments
* Use union + fix tests
* handle multiple file case
* Add serializer to info payload
* lint
* Add to CHANGELOG
* grc version
* requirements
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-05 19:10:34 -05:00
Aarni Koskela
d1853625fd
More Ruff rules ( #4038 )
...
* Bump ruff to 0.0.264
* Enable Ruff Naming rules and fix most errors
* Move `clean_html` to utils (to fix an N lint error)
* Changelog
* Clean up possibly leaking file handles
* Enable and autofix Ruff SIM
* Fix remaining Ruff SIMs
* Enable and autofix Ruff UP issues
* Fix misordered import from #4048
* Fix bare except from #4048
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 21:54:23 -05:00
Aarni Koskela
4d629f04cc
Upgrade pyright to 1.1.305 ( #4042 )
2023-05-02 13:20:35 -05:00
1lint
f97b18ec9d
Allow decoding b64 string without header in processing utils ( #4031 )
...
* allow decoding b64 string without headers
* install gradio-client in edittable mode
* update GH actions
* add test for decoding headerless b64
* add test for decoding headerless b64 image
* some linting
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-01 18:24:54 -05:00
Aarni Koskela
12a97746ff
Ruff update + strictening ( #3979 )
...
* Update ruff to 0.0.263
* Get rid of bare except:s
* Fix two Ruff E731s by moving expand_{color,size} to the relevant classes
* Fix Ruff E731 and some variable shadowing in theme builder
* Fix remaining Ruff E731s
* Get rid of unused Ruff ignores
* Fix ruff B904 issues (raise from)
* Fix Ruff B007: loop-control variable not used
* Fix Ruff B011 (do not assert false)
* Remove unused args and kwargs from Progress.tqdm() (spotted via Ruff B026)
* Fix mutable argument default in CheckboxGroup
* Noqa ABC-related lint warnings for Interpretable
* Add missed assert in test_queueing (ruff B015)
* Enable ruff B
* Enable ruff C and fix issues
* Add changelog
* Add UP03[012] after #3984
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 17:59:42 -04:00
Abubakar Abid
847247e1dd
version ( #3990 )
2023-04-27 16:35:55 -04:00
Freddy Boulton
2a59ec04fa
Fix view_api bug where unnamed rotes where showing api_name instead of fn_index ( #3972 )
...
* Fix view_api bug
* Add to changelog
* Rework test
2023-04-26 18:38:46 -04:00
Aarni Koskela
37d52a753c
CI: only run backend lints once, not in all test environments ( #3960 )
...
* CI: only run backend lints once, not in all test environments
* Add needses
2023-04-26 15:41:06 -04:00
Freddy Boulton
f886045535
Use local demos for client tests ( #3975 )
...
* Fix tests
* Fix tests
* Address comments
2023-04-26 11:11:28 -04:00
Freddy Boulton
d835c9a816
Support gr.Progress() in python client ( #3924 )
...
* Add progress message
* CHANGELOG
* Dont use pydantic
* Docs + local test
* Add gr to requirements
* Remove editable install
* make a bit softer
2023-04-24 12:52:10 -04:00
Tenzin
3b114cbc2b
Fixes typos ( #3931 )
...
* Fixes typos
* Update CHANGELOG.md
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-21 11:00:57 -04:00
Abubakar Abid
7a04ebe7fd
Fix some documentation-related issues in Guides ( #3903 )
...
* client doc fixes
* simplify demo
* added guides
* chatbot guide
* notebooks
* format
2023-04-19 14:38:11 -04:00
Abubakar Abid
1f246d9d1e
changelog 0.1.3 ( #3862 )
2023-04-14 17:47:43 -07:00
Freddy Boulton
7ef0439d3c
Fix video serializing in client ( #3860 )
...
* Fix video serializing in client
* Add to changelog
* Remove print
2023-04-14 17:07:19 -07:00
Abubakar Abid
d3b7f73bcf
Update view api page to use Python client ( #3765 )
...
* Update view api page
* simplify
* update
* changes
* changes
* updated info
* formatting
* changes
* fixes
* save
* moved
* remove test input
* tweaks
* formatting
* add raw
* serialize
* fixes
* refactor
* fixes
* fixes
* Fetch api
* lower case
* view api
* fix tests
* format
* rough design
* readme
* api docs
* examples
* format
* formatting
* format
* version
* client changes
* formatting
* update client
* more example inputs
* api docs fixes
* remove notebook
* fix demo
* demo notebook
* styling on code snippet
* formatting
* fix audio, model3d
* format
* fix tests
* version
* cleanup
* format
* format
* format
* fixes
* version
* fix tests
* version
* format
* test
* format
* changelog
* changelog
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-13 16:20:33 -07:00
Abubakar Abid
40b30a683b
[WIP] Client duplicate fixes ( #3843 )
...
* client duplicate fixes
* fixes
* formatting
* changes
* fixing tests
* formatting
2023-04-13 12:30:11 -07:00
Abubakar Abid
9f4f851d68
Python client Guide ( #3788 )
...
* guide
* guide
* Apply suggestions from code review
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* add cancel
* remove duplicated docs
* updates
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-04-12 13:44:38 -07:00
Abubakar Abid
c3e239fca0
changelog for client ( #3761 )
2023-04-12 13:35:34 -07:00
Abubakar Abid
52d0885937
Allow client to be duplicated from an existing Space ( #3809 )
...
* client
* readme
* readme
* fixes
* cleanup
* error messages
* format
* updates
* format
* build
* fixes
* fix tests
* Update client/python/gradio_client/client.py
Co-authored-by: aliabid94 <aabid94@gmail.com>
* set timeout
* rename
* format
* rename
* sleep timeout
* format
* mock secrets
* format
* format
* docstring
* fix test
---------
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-12 13:26:37 -07:00
Freddy Boulton
00d7a5ce24
Python Client: Handle invalid space state ( #3822 )
...
* Raise error on status check
* Add BUILDING
* Remove SLEEPING
2023-04-11 22:38:17 -04:00
Greysuki
54af6ae290
Adding subtitles to gr.Video
( #3673 )
...
* v2 version now accepts video and subtitle format inputs.
* remove debug log and some format issue
* Update CHANGELOG.md
* Upload components.py and regenerate demo
* fix components and add comment to function
* fix postprocess return format
* changelog
* demo change to gr.Interface type
* fix file_types
* fixes
* added video serializer
* clean up preprocess
* clean up postprocess
* formatting
* frontend
* fixed serialization
* dataclass
* fix serialize
* version
* fix tests
* version
* changelog
* typing
* version
* changelog
* version
* versin
* fix tests
* fix tests
* backend
* test
* changes
* relax test
* fix demo
* notebook
* changes
* fix
* changes
* Update gradio/components.py
* Update client/python/gradio_client/client.py
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-11 16:06:48 -07:00
space-nuko
5a7610950e
Fix sketch tool gr.Image
not filling up the entire component size ( #3649 )
...
* Fix sketch tool `gr.Image` not filling up the entire component size
* Update changelog
* version
* version
* changes
* changes
* Update js/atoms/src/Block.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-10 14:27:02 -07:00
Freddy Boulton
72c9636370
Python client cancel jobs ( #3787 )
...
* Working impl
* Add tests:
* formatting
* Fix typo
* Always reset iterator state
* Add httpx
* Fix test
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-09 07:22:49 -07:00
Freddy Boulton
1def8df6dd
Python Client: Upload files via /upload for File components ( #3771 )
...
* Add tests
* Fix tests
* Remove redundant test
* fix for windows
* Add tests
* Fix tests
* Remove redundant test
* fix for windows
* Add uploadbtn
* Add support for upload btn
* revert
* Add size to FileSerializable
* Serialize multiple files
* lint
* Make changes to deserialize
* Fix multiple file upload case
* Modify test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-07 19:42:59 -04:00
Abubakar Abid
b456feb5c4
Py client verbose ( #3781 )
...
* verbose flags
* fixes
2023-04-06 16:41:37 -07:00
Abubakar Abid
5f8186218c
Document python client in gradio.app/docs ( #3764 )
...
* document py client
* more changes
* update docs
* changes
* fix tests
* formatting
* stash
* fix tests
* documentation
* more docs
* gradio client
* changes
* rework documentation
* add to docs
* modify dockerfile
* gradio client
* address feedback
* formatting
* gradio client version
* fix tests
* tweaks to website
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-06 12:58:42 -07:00
Freddy Boulton
a828b6088c
Make Client Jobs Iterable ( #3762 )
...
* Add iterator
* Break if done
* Add test for early termination
2023-04-05 14:19:05 -04:00
Freddy Boulton
9325cba14c
Get Intermediate Results from Python Client ( #3694 )
...
* Add status + unit test (flaky) for now
* Install client
* Fix tests
* Lint backend + tests
* Add non-queue test
* Fix name
* Use lock instead
* Add simplify implementation + fix tests
* Restore changes to scripts
* Fix README typo
* Fix CI
* Add intermediate results to python client
* Type check
* Typecheck again
* Catch exception:
* Thinking
* Dont read generator from config
* add no queue test
* Remove unused method
* Fix types
* Remove breakpoint
* Fix code
* Fix test
* Fix tests
* Unpack list
* Add docstring
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-04 17:58:25 -04:00
Abubakar Abid
c4ad09b631
Adds a pypi release action for the gradio python client ( #3743 )
...
* release action
* fixes
* name
* Update version.txt
* Update version.txt
* update
* fixes
* version
* rename
* action
* fix token
* custom dir
* fixes
* change password
* revert back to token
* scripts
* remove twine
2023-04-04 13:51:51 -07:00
Freddy Boulton
070b304e09
CI tweaks ( #3752 )
2023-04-04 14:02:20 -04:00
Freddy Boulton
46ee226d8c
Add root_url to serializers in gradio_client ( #3736 )
...
* Add root_url to serializers
* Add url fix
* Respect fn parameter
* Fix docstring
* Add other test
* Pass to method
2023-04-04 13:35:12 -04:00
Freddy Boulton
b97a61b83a
Import Literal from typing extensions in client ( #3741 )
...
* Fix typing extensions
* Import typing_extensions
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 19:17:00 -07:00
Aarni Koskela
ef3862e075
Switch linting to Ruff ( #3710 )
...
* Sort requirements.in
* Switch flake8 + isort to ruff
* Apply ruff import order fixes
* Fix ruff complaints in demo/
* Fix ruff complaints in test/
* Use `x is not y`, not `not x is y`
* Remove unused listdir from website generator
* Clean up duplicate dict keys
* Add changelog entry
* Clean up unused imports (except in gradio/__init__.py)
* add space
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 15:48:18 -07:00
pngwn
48e8b113f4
node support for js client ( #3692 )
...
* bundle js client + gen types
* changeset
* changeset
* fix bugs
* fix deps
* fix deps
* format
* fix ci
* fix types
2023-04-03 14:33:01 +01:00
Abubakar Abid
f46f5f9867
Fix some bugs related to Python client ( #3721 )
...
* client format
* docs
* formatting
* fix tests
* fixed bug
* api endpoint changes
* fix tests
* fix tests
* formatting
* Add support for sessions [python client] (#3731 )
* client
* add state and tests
* remove session param
2023-04-02 17:28:46 -05:00
Freddy Boulton
da7d1df585
Fix Serializer Mapping ( #3722 )
...
* Fix mapping and test
* Bump gradio version
* Revert gradio version bump
2023-04-01 14:07:15 -05:00
Freddy Boulton
f73155ed42
Add status for Python Client Jobs ( #3645 )
...
* Add status + unit test (flaky) for now
* Install client
* Fix tests
* Lint backend + tests
* Add non-queue test
* Fix name
* Use lock instead
* Add simplify implementation + fix tests
* Restore changes to scripts
* Fix README typo
* Fix CI
* Add two concurrent test
2023-03-29 18:41:12 -04:00
Abubakar Abid
2a8c82de01
Documentation-related fixes to the python client ( #3663 )
...
* docstring
* add documentation
* added more serialization classes
* format
* info
* is valid
* formatting
* changes
* fixups
* fix tests
* machine readable
* formatting
* client
* format
* tweaks on printing
* version
* linting
* fix tests
* update pypi requirements
* updates
* type ignore'
* fixes
* formatting
2023-03-29 15:00:20 -07:00
Abubakar Abid
dc37ddb739
fix sort script ( #3696 )
...
* fix sort script
* formatting
* script
2023-03-29 16:39:40 -04:00
Freddy Boulton
0b91a3363b
Add job for python client ci ( #3674 )
...
* Add job + lint
* Fix path
* Fix path
* Fix path
* Checkout
* Add test requirements
* Fix syntax
* Fix test
* Lint
* Fix deps + README
* Move dependency
2023-03-28 18:52:56 -04:00
Omar Sanseviero
a46b1806bb
Nit in ValueError ( #3669 )
...
* Nit in ValueError
* CHANGELOG
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-28 13:23:15 -04: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
Abubakar Abid
6e6121a1ac
Sets up the Python gradio
client ( #3300 )
...
* placeholder
* changelog
* added to readme
* client
* implement futures
* utils
* scripts
* lint
* reorg
* scripts
* serialization
* cleanup
* fns
* serialize
* cache
* callbacks
* updates
* formatting
* packaging
* requirements
* remove changelog
* client
* access token
* formatting
* deprecate
* format backend
* client replace
* updates
* moving from utils
* remove code duplication
* rm duplicates
* simplify
* galleryserializer
* serializable
* load serializers
* fixing errors
* errors
* typing
* tests
* changelog
* lint
* fix lint
* fixing files
* formatting
* type
* fix type checking
* changelog
* changelog
* Update client/python/gradio_client/client.py
Co-authored-by: Lucain <lucainp@gmail.com>
* formatting, tests
* formatting, tests
* gr.load
* refactoring
* refactoring'
* formatting
* formatting
* tests
* tests
* fix tests
* cleanup
* added tests
* adding scripts
* formatting
* address review comments
* readme
* serialize info
* remove from changelog
* version 0.0.2 released
* lint
* type fix
* check
* type issues
* hf_token
* update hf token
* telemetry
* docs, circle dependency
* hf token
* formatting
* updates
* sort
* script
* external
* docs
* formatting
* fixes
* scripts
* requirements
* fix tests
* context
* changes
* formatting
* fixes
* format fix
---------
Co-authored-by: Lucain <lucainp@gmail.com>
2023-03-23 15:33:44 -07:00