aliabid94
ff6e676a92
Remove style parameter ( #4374 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* fixes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
2023-06-07 18:35:31 -07:00
Abubakar Abid
8617291049
Release v3.34.0 ( #4446 )
...
* version
* fix
* changes
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-06-07 17:28:15 -05:00
Dawood Khan
2829507e7d
Fixes upload button cannot upload same file twice ( #4437 )
...
* fix
* Update CHANGELOG.md
2023-06-07 13:52:09 -07:00
Freddy Boulton
4a58ccee39
Fix bug where file examples can be corrupted if has multiple extensions ( #4440 )
...
* Fix bug
* Add to changelog
* Add test
* Remove breakpoint
* fix test
* increment version
* update client version req
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 15:05:01 -05:00
WilliamRoyNelson
e364f81ffc
Increase version gradio-client version/changelog ( #4441 )
...
* Increase version gradio-client version/changelog
* req
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 14:18:32 -05:00
Abubakar Abid
d82dfb886d
Fix loading private Spaces ( #4430 )
...
* replace api key with hf_token
* removed extra slash
* changelog
* update notebooks
* lint
* changelog
* changelog
* revert demo
2023-06-07 13:55:05 -05:00
aliabid94
866b57b93c
Fix Safari video playback ( #4433 )
...
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-06 14:49:04 -07:00
dkjshk
92a70dd132
fix get_continuous_fn bug when having every ( #4434 )
...
* fix the bug for wrap continuous func with parameter every while origin func return generator
* Update utils.py
* Update CHANGELOG.md
* Update test_utils.py
* Update CHANGELOG.md
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-06 13:46:07 -05:00
Abubakar Abid
9c45aceb30
Adds variant
and interactive
props to gr.UploadButton
( #4436 )
...
* upload button
* fix index
* changelog
* formatting
* cleanup
2023-06-06 13:30:10 -05:00
Dawood Khan
e06317bd00
Update CONTRIBUTING.md ( #4426 )
...
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-06 09:08:54 -07:00
Freddy Boulton
bc6a1fad1c
Call mounted gradio app via api ( #4435 )
...
* Fix bug
* Add changelog
2023-06-06 10:40:56 -05:00
Hannah
1c48b3e857
Remove anchor tag target override ( #4405 )
...
* amend setAttribute logic on anchor tags
* add changelog entry
* tweak setattribute logic
* tweak logic for external links
* changelog tweak
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-06 14:01:49 +01:00
2-5
0a8dbcafa2
Updated CI info in contributing docs ( #4415 )
...
* updated CI info in contributing docs
* Split CI checks into two sections
* Reorder CI sections
* Renamed CI sections
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-06-06 08:52:29 -04:00
Hannah
8730d40505
Fix z-index of status tracker ( #4429 )
...
* change z-index of status tracker wrapper
* changelog
* remove typo and restore removed line
2023-06-06 11:02:01 +01:00
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