Commit Graph

5229 Commits

Author SHA1 Message Date
Abubakar Abid
f353adf7a9
Fix run on click (#4258)
* fix run on click

* changelog
2023-05-17 23:05:47 +02:00
github-actions[bot]
810cff7922
[create-pull-request] automated change (#4250)
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
2023-05-17 20:43:41 +04:00
Yuichiro Tachibana (Tsuchiya)
0a01388dec
Move mount_css() from main.ts to css.ts (#4222)
* Move mount_css() from main.ts to css.ts because these is a circular dependency between main.ts and Index.svelte (and it will help the development of the Wasm ver in the future)

* changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-05-17 11:38:21 +01:00
Yuichiro Tachibana (Tsuchiya)
b0cccb43d6
Refactoring (#4223)
* Replace var with const in js/app/src/main.ts

* Remove unnecessary nullish coalescing in js/app/src/main.ts

* Remove unnecessary white spaces in the NPM scripts in js/app/package.json

* Use object key-value shorthand

* changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-05-17 11:29:32 +01:00
pngwn
5c3fd1b5aa
make workbench private (#4247) 2023-05-17 11:10:54 +01:00
David Ai
39045d6eb1
Fix JSONDecodeError (#4241)
* Fix JSONDecodeError bug (#4237)

* Remove unused import

* Clean up code

* Fix JSONDecodeError (#4241)

* Accept all Exceptions

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-16 23:37:00 -04:00
Dawood Khan
7664bb57f5
Fixes chatbot_dialogpt demo (#4238)
* demo fix

* changelog

* fix

* demo

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-16 21:43:15 -04:00
Abubakar Abid
c4e96d9f01
release (#4219)
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-16 19:52:37 -04:00
pngwn
f7a8948776
Fix publish (#4240)
* fix npm publish

* fix npm publish
2023-05-16 23:21:40 +01: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
Aarni Koskela
e54e943d44
Only allow messaging update if analytics is enabled (#4236)
* Only allow messaging update if analytics are allowed

Follows up on #4194

* Remove duplicate changelog entry

* remove circular import

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-16 14:41:40 -04: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
Abubakar Abid
6bace9765c
Fix for typing.get_type_hints() on Python 3.9 or lower (#4228)
* fix

* fix docstring

* type hint fix

* fix test

* Update gradio/utils.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* fix indentation

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-05-16 14:21:35 -04:00
Abubakar Abid
7241cdaf91
Increase websocket messaging timeout (#4235)
* increase websocket timeout

* changelog
2023-05-16 14:10:00 -04:00
Aarni Koskela
8b72e9e127
Do not do any analytics requests if analytics are disabled (#4194)
* Move analytics-related bits to gradio.analytics

* Do not do any analytics requests if analytics are disabled

* Remove unused log_feature_analytics

* removed redundant analytics, rewrote

* renamed

* save

* fixed test'

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-16 02:55:46 -04:00
aliabid94
96b38fda07
Input listener (#4157)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* chnages

* fix

* changes

* changes

* merge

* changes

* restore

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-15 21:36:57 -04:00
Yuichiro Tachibana (Tsuchiya)
0321320035
Update CONTRIBUTING.md (#4220) 2023-05-15 14:56:37 -04:00
Micky Brunetti
0fc0e468cc
Programmatically launch reload to allow factories and arguments to be passed to the app (#4119)
* Programmatically lauch reload to allow factories and arguments to be passed to the app

* add warning

* modify warning

* guide fixes

* formatting

* changes

* warning

* import fix

* fix tests

* fix tests

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-15 13:56:10 -04:00
Aarni Koskela
2f2123b5ac
Correct stacklevel for check_deprecated_parameters (#4203)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-15 08:22:16 -04:00
Der Chien
4e4549c063
Fix Explanation Regarding NumPy Image Component (#4204)
* 20230513 swap np height and width in docs

* changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-15 08:13:35 -04:00
pngwn
4c63a1d29a
fix token (#4208)
* fix token

* add label
2023-05-14 14:14:44 +01:00
pngwn
da5b4ee117
Fix semiver import (#4201) 2023-05-14 10:42:02 +01:00
LingFeng.Chen.Cn
3964b9be5f
Fix "TypeError: issubclass() arg 1 must be a class" When Optional args (#4200)
* fix "issubclass() arg 1 must be a class" when args is Optional

* Update CHANGELOG.md

add fix "TypeError: issubclass() arg 1 must be a class" when use Optional args

* Update gradio/helpers.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* changelog

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-05-13 17:06:00 -04: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
8df714f32d
Fix npm publish again again (#4195)
* ci typo

* fix

* again

* again

* again
2023-05-12 22:23:24 +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
Freddy Boulton
8deab23623
Add format argument to Audio (#4178)
* experimental

* Add test

* Rename to format

* Rename

* CHANGELOG

* Add to docstring

* Update gradio/components.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-12 16:56:07 -04:00
pngwn
aecf8feb1d
Fix npm publish again again (#4193)
* ci typo

* fix

* again

* again
2023-05-12 21:37:10 +01:00
pngwn
402846020e
Fix npm publish again again (#4192)
* ci typo

* fix

* again
2023-05-12 21:22:41 +01:00
pngwn
45fcb0a190
Fix npm publish again again (#4191)
* ci typo

* fix
2023-05-12 21:03:26 +01:00
pngwn
a4748fb1f1
ci typo (#4190) 2023-05-12 20:40:54 +01:00
pngwn
9ff9735d1f
change (#4189) 2023-05-12 20:21:58 +01:00
pngwn
6e28936e1f
update token for npm action (#4187) 2023-05-12 20:00:12 +01:00
pngwn
ceeb96186b
Fix (#4186)
* bump client version

* ignore spaces-test

* fix
2023-05-12 19:31:34 +01:00
pngwn
67239ca9b2
bump client version (#4185)
* bump client version

* ignore spaces-test
2023-05-12 19:16:19 +01:00
pngwn
ef1049e3b2
update ci (#4184) 2023-05-12 18:58:17 +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
aliabid94
8ba4cceaf9
Dispatch dropdown change on value change for any reason (#4128)
* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 16:28:19 -05:00
github-actions[bot]
e3296378c6
New Version Docs (#4172)
* [create-pull-request] automated change

* Update v3.30.0_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 15:32:22 -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
d9acdfb7a3
Release 3.30 (#4166)
* release

* requirements
2023-05-11 15:05:55 -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
Freddy Boulton
c4a884a9a7
Fix flaky interface test (#4168)
* Fix test

* Lint

* Fix vs code lint
2023-05-11 10:53:45 -05:00
Yuichiro Tachibana (Tsuchiya)
b169896a9a
Fix the wildcard in .editorconfig to match files in nested directories (#4165)
* Fix the wildcard in .editorconfig to match files in nested directories

* Remove a wrong whitespace in a brace expansion notation in .editorconfig

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-05-11 10:29:28 -04:00
Abubakar Abid
253410c78d
simplify format of changelog (#4163) 2023-05-11 08:11:49 -05:00
Yuichiro Tachibana (Tsuchiya)
29d3d81e54
Fix the prettier.ignorePath field in the VSCode workspace settings (#4164)
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-11 13:58:44 +01:00
Yuichiro Tachibana (Tsuchiya)
3b744a5386
Update .prettierignore adding client/js/dist and .venv (#4160) 2023-05-11 13:43:53 +01:00