aliabid94
b661e3a7c2
Restore offline support ( #4398 )
...
* changes
* changes
* changes
2023-06-01 15:37:07 -07:00
Abubakar Abid
2ecebfb4fc
release 3.33.0 ( #4392 )
...
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-06-01 14:35:27 -07:00
binary-husky
2a30deed84
fix copy button invalid & copy button (invisible) duplication bug in chatbot ( #4350 )
...
* fix a copy button duplication bug in chatbot
* fix copy button invalid issue
* Update CHANGELOG.md: Fixed Copy Button
* fix changelog typo
* switch to static HTML + event delegation for copy button
* fix
* format + notebooks
* format + notebooks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-01 22:51:36 +09:00
Dawood Khan
01d334b0b9
Use DOMPurify to sanitize html in chatbot ( #4360 )
...
* dompurify
* changelog
* format
* clean
* changelog
* Update run.py
* update happy-dom
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-01 21:52:24 +09:00
WilliamRoyNelson
feeb509537
Add pypi classifiers to pyproject.toml ( #4383 )
...
* Add pypi classifiers to pyproject.toml
* Add OS classifier
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-06-01 15:18:23 +09:00
Abubakar Abid
31a8cfbf74
Favicon fix for Windows ( #4369 )
...
* favicon fix
* changelog
* svg
* remove favicon
* actual fix
2023-05-31 21:49:06 -07:00
Abubakar Abid
cd64130d54
Prevent path traversal in /file
routes ( #4370 )
...
* add tests
* add tests
* file route fix
* update tests
* formatting
* file access
* cleanup
* cleaning
* fix tests
2023-05-31 20:19:17 -07:00
Freddy Boulton
4ee9c1b708
Make chatbot input fields non-interactive while bot is streaming ( #4363 )
...
* Add demo impl
* trigger then if generating
* remove unused value
* CHANGELOG
* Fix code
* Update guide
* Update guides/07_other-tutorials/creating-a-chatbot.md
Co-authored-by: pngwn <hello@pngwn.io>
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-31 12:58:22 -07:00
Abubakar Abid
e503ae0eca
Do not send HF token to other domains via /proxy
( #4368 )
...
* test
* fix
* changelog
* fix, add warnings
2023-05-31 11:49:10 -07:00
aliabid94
114f4b4296
Push to spaces ( #4033 )
...
* changes
* first commit
* Update gradio/upload.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* Update gradio/upload.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* chnages
* changes
* changes
* changes
* changes
* Update 03_sharing-your-app.md
* changes
* changes
* change
* changes
* changes
* changes
* Update gradio/deploy_space.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-31 10:13:46 +09:00
Aarni Koskela
7781665014
Don't allow dotfiles for /file= route ( #4303 )
...
* Don't allow dotfiles or files in "dot directories" for /file=
* update guide
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-30 15:19:42 -07:00
Abubakar Abid
fc3bbca878
Respect interactive=True
in output of gr.Interface
( #4356 )
...
* 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 ( #4275 )
...
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-30 12:02:04 +09: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
Aarni Koskela
59e487d30c
Optimize frontend's is_dep calls ( #4334 )
...
* 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 ( #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
Paul Garner
5983836804
return a Dependency instance from Blocks.load event listener ( #4304 )
...
* 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 ( #4337 )
...
* 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… ( #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
github-actions[bot]
38607c9967
New Version Docs ( #4296 )
...
* [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 ( #4293 )
...
* release 3.32.0
* changelog
2023-05-21 15:52:58 +09:00
Dawood Khan
12470571c9
Katex support in chatbot ( #4285 )
...
* 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 ( #4282 )
...
* 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 ( #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
Dawood Khan
7145327058
Using marked for chatbot markdown parsing ( #4150 )
2023-05-18 08:55:46 -07: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
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