2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-03-25 12:10:31 +08:00

5347 Commits

Author SHA1 Message Date
Abubakar Abid
fc3bbca878
Respect interactive=True in output of gr.Interface ()
* tests

* changelog

* lint

* Update gradio/interface.py

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

* format

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-05-30 09:22:03 -07:00
Aarni Koskela
0a6a80ce02
Remove a bunch of unused frontend code ()
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-30 12:02:04 +09:00
pngwn
0dbd8f7fee
various client refactors + tweaks ()
* 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 ()

* Remove unnecessary @ts-ignore ()

* Remove unnecessary Promise wrapping another promise ()

* 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` ()

* 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
Aarni Koskela
59e487d30c
Optimize frontend's is_dep calls ()
* Optimize is_dep (36 to 12 msec)

* Call is_dep less (12 msec to 9 msec)

* Changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-05-30 10:39:19 +09:00
pngwn
caceb7a5b1
chore: update versions ()
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 ()
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-29 14:04:00 -07:00
Paul Garner
5983836804
return a Dependency instance from Blocks.load event listener ()
* return a Dependency instance from Blocks.load event listener

* a test case for chaining then from load event

* update CHANGELOG

* add test for load.then with blocks re-used

* fixes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-29 13:52:23 -07:00
thiswillbeyourgithub
4d163023ca
typo (minor): extra newline puts the documentation of colums to grid ()
* typo (minor): extra newline puts the documentation of colums to grid

* edited changelog

* changelog

---------

Co-authored-by: thiswillbeyourgithub <github@32mail.33mail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-29 12:59:09 -07:00
Yuichiro Tachibana (Tsuchiya)
b525b122dd
Add overridden type annotations on normalise_file() to remove @ts-i… ()
* 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
github-actions[bot]
38607c9967
New Version Docs ()
* [create-pull-request] automated change

* Update v3.32.0_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-22 12:01:15 +09:00
Abubakar Abid
b51112811c
Release 3.32.0 ()
* release 3.32.0

* changelog
v3.32.0
2023-05-21 15:52:58 +09:00
Dawood Khan
12470571c9
Katex support in chatbot ()
* katex

* katex support

* changelog

* fixes

* pr fixes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-21 15:41:09 +09:00
Aarni Koskela
f0b8862475
Allow passing FastAPI app options ()
* App: don't force docs_url and redoc_url to None

* App.create_app: allow passing in app_kwargs

* start_server + launch: allow passing in app_kwargs

* Changelog

* Apply suggestions from code review

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

* Use .launch for tests

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-20 18:10:00 +09:00
pngwn
1d0f0a9db0
Ensure error modal display as expected when using the queue () 2023-05-20 00:32:12 +01:00
Freddy Boulton
834afdd303
Temp file fixes ()
* 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 ()
* fix info request in js client

* changelog
2023-05-19 10:58:42 -04:00
Dawood Khan
7145327058
Using marked for chatbot markdown parsing () 2023-05-18 08:55:46 -07:00
Aarni Koskela
9ece3b43b9
Upgrade black to 23.3 ()
* Upgrade black

* Conservatively upgrade packaging too since it's black's dependency
2023-05-18 11:04:59 -04:00
Abubakar Abid
f353adf7a9
Fix run on click ()
* fix run on click

* changelog
2023-05-17 23:05:47 +02:00
github-actions[bot]
810cff7922
[create-pull-request] automated change ()
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 ()
* 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 ()
* 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 () 2023-05-17 11:10:54 +01:00
David Ai
39045d6eb1
Fix JSONDecodeError ()
* Fix JSONDecodeError bug ()

* Remove unused import

* Clean up code

* Fix JSONDecodeError ()

* 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 ()
* 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 ()
Co-authored-by: pngwn <hello@pngwn.io>
v3.31.0
2023-05-16 19:52:37 -04:00
pngwn
f7a8948776
Fix publish ()
* fix npm publish

* fix npm publish
2023-05-16 23:21:40 +01:00
pngwn
d0e0c81046
chore: update versions ()
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 ()
* fix cancels

* changelog

* refactor to make it work
2023-05-16 22:37:28 +01:00
pngwn
a26e9afde3
Fix client filepaths ()
* 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 ()
* Only allow messaging update if analytics are allowed

Follows up on 

* 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 () 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 ()
* 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 ()
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 ()
* 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 ()
* fix token

* add label
2023-05-14 14:14:44 +01:00
pngwn
da5b4ee117
Fix semiver import () 2023-05-14 10:42:02 +01:00
LingFeng.Chen.Cn
3964b9be5f
Fix "TypeError: issubclass() arg 1 must be a class" When Optional args ()
* 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 ()
* 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 ()
* ci typo

* fix

* again

* again

* again
2023-05-12 22:23:24 +01:00
pngwn
c723f7f2c9
chore: update versions ()
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 ()
* 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 ()
* ci typo

* fix

* again

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

* fix

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

* fix
2023-05-12 21:03:26 +01:00