aliabid94
bc786ae4da
Corner status tracker ( #4396 )
...
* 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
* changes
* changes
* changes
* changes
* chagnes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-05 18:11:53 -07:00
aliabid94
e4014d058d
Remove statustracker flicker on quick requests ( #4349 )
...
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-05 17:10:29 -07: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
Freddy Boulton
4bbb844545
Fix Bug where File(file_count="multiple") can't be cached as example ( #4421 )
...
* Add fix
* Add test
* Lint
* Lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-05 17:33:31 -05:00
Abubakar Abid
37967617bd
Restrict proxy URLs ( #4406 )
...
* restrict proxy urls
* fix test
* changelog
* fix tests
* Update gradio/routes.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* Update gradio/routes.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* fix test
* docstring
* bring back hf url
* fix tests
* Update gradio/blocks.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* Update gradio/blocks.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* fix tests
* nit
* fix test
* format
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-05 12:51:33 -05:00
Ran Ding
4d2c455a36
Update CONTRIBUTING.md ( #4414 )
...
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-06-04 23:02:48 -04:00
2-5
d13e889813
remove obsolete run circleci script ( #4416 )
2023-06-04 22:18:59 -04:00
Charles Bensimon
2effd86353
PySpaces integration ( #4389 )
...
* PySpaces import and auto-wrap
* Only auto-wrap on Spaces runtime
* Display a message if PySpaces auto-wrapper actually change fn
* Upgrade to spaces==0.2.1 in tests
* A little bit more clear
* CHANGELOG
* Do not message after auto-wrap
* Revert test/requirements*
* type-ignore PySpaces import
2023-06-02 09:38:30 -07:00
Shavit
1fc8c5fd8c
Throttle scroll event ( #4158 )
...
* Throttle scroll event
This decreases the amount of function calls when scrolling through the documentation website.
* fix themes base
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-06-02 18:22:47 +04:00
Ali Abdalla
f3a64ece33
fix indent ( #4404 )
2023-06-02 15:46:41 +04:00
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