Yuichiro Tachibana (Tsuchiya)
1a8eb4deb4
Run pnpm i
with pnpm@8.6.0 to re-generate the lock file ( #4393 )
2023-06-02 17:13:58 +09:00
Yuichiro Tachibana (Tsuchiya)
eac0a81eb7
Fix the Node and pnpm setup actions ( #4394 )
2023-06-02 17:00:00 +09:00
Freddy Boulton
3cfb29a996
Prevent label change event from triggering itself ( #4371 )
2023-06-02 14:31:09 +09:00
Abubakar Abid
1c8cb5ebf1
v3.33.1 + Guide on setting up Gradio behind nginx... ( #4379 )
...
* nginx guide
* delete 3.33.0
* version
* unindent
2023-06-01 20:23:39 -07:00
Yan
728ed32b81
Update utils.py for validate_url ( #4388 )
...
* Update utils.py for validate_url
AWS s3 presigned url cannot work for both HEAD and GET. So when HEAD the presigned url, it will return 403(Forbidden)
* Update gradio/utils.py
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 18:59:21 -07:00
Abubakar Abid
631403d8c5
Update message when share link binary is blocked ( #4380 )
...
* update share link message
* address suggestion
* changelog
* fix
* formatting
2023-06-01 18:47:42 -07:00
Ali Abdalla
a43531cc4b
Remove old versioned docs and fix repo classification ( #4362 )
...
* remove old versioned docs
* delete versioned docs when new one is created
* ignore website dir in linguist calc
* upload and download versioned docs
* modify github action
* remove gitattributes file
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 18:38:53 -07:00
Ali Abdalla
8f0bd10be7
Fix Base parent in Docs, add Group ( #4391 )
...
* fix base parent
* add group to docs
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 16:23:17 -07:00
github-actions[bot]
f4f3e2e597
New Version Docs ( #4397 )
...
* [create-pull-request] automated change
* Update temporary_template.html
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 16:13:30 -07:00
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