Freddy Boulton
3dc9a65815
Use state in ChatInterface ( #4976 )
...
* Use state in chatinterface
* Changelog
* Fix tests
* use chatbot_state for everything
* lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-20 14:08:50 +03:00
Hannah
a0efc1180d
Add show_download_button
to gr.Image() ( #4959 )
...
* add show_download_button param
* add static image story
* chlog
* fix test
* typo
* add default value
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix test
* fix another test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 19:00:02 +01:00
Charles Bensimon
a0b87cb6b3
Filter-out special args when setting Interface component labels ( #4956 )
...
* Filter-out special args when setting Interface component labels
* CHANGELOG
* Regression test
* Revert "Filter-out special args when setting Interface component labels"
This reverts commit f82e9ba2f2
.
* Unrevert
This reverts commit 3361321eaa
.
* Empty commit
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 17:54:39 +03:00
Abubakar Abid
5a511f02af
A high-level ChatInterface
abstraction ( #4869 )
...
* push
* chat interface
* remove video artifact
* changes
* restore
* changes
* more functions
* clean
* chat interface
* chat interface
* Update gradio/chat_interface.py
* nit
* changes
* api fix
* chat interface
* guide
* guide
* changes
* fixes
* Added ChatInterface Examples for Langchain, OpenAI Streaming, and HF's Text Generation Inference (StarChat)
* docstring
* tests
* tests
* tests
* tests
* rename
* guide
* chatbot
* conclusion
* demo notebooks
* clog
* test
* chat interface
* fixes
* functional test
* test
* notebook
* guides
* typing
* docstring
* script
* upgrade pyright
* upgrade pyright
* Update CHANGELOG.md
* revert pyright upgrade
* typing
* redirects
* Update CHANGELOG.md
* guide
* guide
* readme
* screenshot
* add to readme
* quickstart
* readme
* Added transformers open-source LLM example using ChatInterface
* Minor nits to guide
* Minor tweak to test - use connect fixture
* website fixes
* nav
* guide
* fix tests'
* fix
* type
* clear
* chat interface
* fix test
* fix guide
* handle edge case
* edge case
* typing
* fix example caching with streaming
* typing
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Yuvraj Sharma <48665385+yvrjsharma@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-07-17 13:22:47 -04:00
Abubakar Abid
b16732ffb2
Add RTL support to Textbox
, Markdown
, Chatbot
( #4933 )
...
* add rtl support
* redo
* remove param
* clog
* fix backend tests; add textbox story
* add textbox story
* fix textbox story
* fixed textbox story, markdown
* markdown story
* format
* fixes'
* Update CHANGELOG.md
* update docstrings
* fix tests
* fix static checks
* fix tests
2023-07-17 12:53:23 -04:00
Abubakar Abid
e90ad010ad
Allow caching generators and async generators ( #4927 )
...
* helpers
* helpers
* async and tests
* docstring
* changelog
* type
* typing
* helpers
2023-07-14 19:38:22 -04:00
aliabid94
9137f1caa0
Speed up gradio.launch, especially when there's no internet ( #4905 )
...
* changes
* changes
* changes
* Revert "changes"
This reverts commit cbebf39157
.
* lint
* fix tests
* an
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-14 15:45:52 -04:00
Freddy Boulton
431140b903
Fix bug related to preprocessing URLs for video ( #4904 )
...
* Support urls
* Add unit test
* CHANGELOG
* Bump client version
* use url_like
2023-07-12 21:46:54 -04:00
Abubakar Abid
9f072796a5
Pinning dependencies in requirements.txt ( #4885 )
...
* requirements
* pins
* clogs
* python multipart
* python multipart
* clogs
* clog
2023-07-12 21:03:53 -04:00
Freddy Boulton
9787d0284a
Use tempdir for all python unit tests tests ( #4882 )
...
* Use tempdir for all tests
* Disable telemetry automaticall for client
* Use configuration
* Push js
* Final comments
* Undo change
2023-07-12 11:19:39 -04:00
Abubakar Abid
a82eee5733
Quick fixes to video test ( #4870 )
...
* push
* test components
* remove test file
* added monkeypatch
2023-07-11 10:29:14 -04:00
Freddy Boulton
6436e4ea5b
Refactor some python tests ( #4834 )
...
* Refactor
* Remove tests
* Fix image file
* trigger ci
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-10 13:40:46 -04:00
Freddy Boulton
0f8e25cd65
Fix gr.Warning/gr.Info when using generators + interface ( #4823 )
...
* Fix bug
* Fix notebook
* Add test
* Lint backend
2023-07-06 19:37:20 -05:00
Aarni Koskela
87e14e38b5
decode_base64_to_image: don't crash if EXIF data is broken ( #4764 )
...
* decode_base64_to_image: don't crash when if EXIF data is broken
* Simplify EXIF transposition to not read the EXIF data twice
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-06 10:35:08 -05:00
aliabid94
b8eb481473
Share button ( #4651 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* restore
* merge
* del image'
* update pnpm lock
* changes
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* fix
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* chagnes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-05 19:50:17 -05:00
aliabid94
6c5427230e
Create Warning, Info modals ( #4518 )
...
* changes
* changes
* changes
* changes
* changes
* Styling for error, warning and info toasts (#4603 )
* create abstract toast component for info/warning/error
* add icons
* add light mode theming
* add theme mode check and dark mode styles
* update theme_mode on update
* clean up render of toast content
* replace dynamic css vars with toast type css selectors
* tweak colours
* change error pill border colour to align with toasts
* formatting
* fix failed test
* rename icon files and clean up css
* changes
* changes
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-03 16:28:39 -05:00
Abubakar Abid
56da69619c
Fix for analytics error ( #4738 )
...
* added exception
* fix
* changelog
* format
* blocks
* format
* Update gradio/exceptions.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* review fixes
* formatting
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-30 16:16:55 -05:00
Sunil Kumar Dash
e38496ec1e
Support path objs in components ( #4581 )
...
* Added support for Path objs in components(Video, Geallery, chatbot)
* added tests for pathlib.Path objs in Video, chatbot, Gallery
* added changes to docstrings and type annotations
* changelog
* formatting
* video
* fixing video docstring
* update
* Update test/test_components.py
* Update test/test_components.py
* formatting
* remaining components
* add pathlib to tests
* fix test
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-29 16:54:35 -05:00
Abubakar Abid
409593e9cc
Updates to the API endpoints / docs, and fixing the Theme builder ( #4683 )
...
* view API fixes
* code snippet js
* changelog
* api name false
* examples
* client trigger tests
* fix typecheck
* black
* type
* typing
* typing
* update gif
* type ignore
* added tests
* format
* added test
* test
* fix guides
* snippet
* tests
* fix tests
* add test
* fix typing
* fix test
* remove comments
2023-06-29 14:05:25 -05:00
Jeb
d85fddf677
Updated components with 'info' attribute to update when update() is called on them. ( #4715 )
...
* updated components with 'info' attribute to update when update() is called on them.
* added change to CHANGELOG.md
* updated CHANGELOG.md with correct format ending
* fix test
* changelog
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-29 11:09:55 +01:00
Freddy Boulton
2baf33c33f
Fix Wrong Deprecation Warning message for type/plot parameter ( #4709 )
...
* Add code
* CHANGELOG
* Fix
* Add to changelog
2023-06-28 15:02:01 -04:00
Ilya Trushkin
b5121a96b2
Forward tqdm
constructor arguments to Progress
component ( #4475 )
...
* Forward tqdm constructor arguments to Progress component
Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
* lint
* reorder args
* added tests
---------
Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-26 09:26:28 -05:00
Aarni Koskela
4d1ad7c820
make_waveform: raise exception if ffmpeg fails ( #4578 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-21 13:34:33 -05:00
Aarni Koskela
c6c545cfe0
Improve make_waveform ( #4570 )
...
* make_waveform: ensure input file exists
* make_waveform: avoid shell injection vulnerability (and as a side effect, support names with spaces)
* add test
* add test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-20 12:19:15 -05:00
Freddy Boulton
e0a7f87b94
Some BarPlot Fixes ( #4531 )
...
* Fixes
* CHANGELOG
* Fix
2023-06-15 14:29:40 -04:00
Hannah
7dc73d2bec
Amend error toast and pill styling ( #4454 )
...
* remove error gradient and add border to toast
* changelog
* tweak styling for light and dark error status and toast
* run prettier
* restore removed onclick
* remove formatting
* fix dracula test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-15 19:51:09 +02:00
Abubakar Abid
36a6f37711
Fix regression in gr.Audio
( #4525 )
...
* audio format
* finish
* format
2023-06-15 12:09:47 -05:00
Dawood Khan
03edbc6f81
Adds Latex Delimiters Parameter ( #4516 )
...
* katex
* changes
* format
* fix test
* remove None
* changelog
* Update gradio/components/chatbot.py
* Update gradio/components/chatbot.py
* tweak
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-15 14:27:18 +01:00
Charles Frye
3de6246c4a
add app_kwargs for mount_gradio_app ( #4519 )
...
* Initial commit
* adds app_kwargs for mount_gradio_app, with test
* updates CHANGELOG
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-15 06:57:09 -05:00
Abubakar Abid
d65512cb3a
Fix output directory of files in client & when calling Blocks as function ( #4501 )
...
* output dirs
* remove
* remove
* remove
* changelog
* format
* add tests
* docstring
* changelog
* client
* blocks
* fix test
2023-06-14 17:08:10 -05:00
Freddy Boulton
69f36f9853
Place components separate files ( #4487 )
...
* Move files
* Add missing
* Fix tests
* Merge main
* Lint
* Remove literal
* add documentation decorator
* lint
* Remove typing_extensions
* Fix documentation tag
* ClearButton to components
* Add file
* import
2023-06-14 11:26:10 -04:00
Freddy Boulton
afcc20801e
Deprecate python 3.7 ( #4484 )
...
* Remove versions from 3.7
* CHANGELOG
* from typing import Literal
* Remaning places 3.7
* Last few spots
* Use 3.8 in lint
2023-06-13 21:52:33 -04:00
Abubakar Abid
4729457929
Add a gr.ClearButton
( #4456 )
...
* clear button
* restore
* button in interface
* changelog
* fixes
* simplify
* changes
* components
* changed dropdown behavior
* fix label
* add tests
* update demos
* changelog
* changelog
* restore
* formatting
* revert dropdown
* frontend changes
* other fixes
* changelog
* update guide
* future
* fix tests
* fix tests
* fix tests
* changelog
* update guide
2023-06-13 19:18:14 -05:00
Freddy Boulton
ba25158420
Fix video conversion bug ( #4467 )
...
* Fix bug
* CHANGELOG
* Add feature
* Revert "Add feature"
This reverts commit 834fed6a9f
.
---------
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-06-12 16:48:43 -04:00
Dawood Khan
e9aa9eec37
gr.Number() max/min limit ( #3991 )
...
* Add min max handling for Number (#3871 )
* feat: add min max handling for Number
* Update CHANGELOG.md
* fix: Error when min or max is not specified
* fix formatting
* fix: error when nothing is specified
* Just put infinity in min and max
---------
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
* number limit
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* New Version Docs (#4027 )
* [create-pull-request] automated change
* Trigger Build
---------
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* Safer `HuggingFaceDatasetSaver` (and deprecate `HuggingFaceDatasetJsonSaver`) (#3973 )
* Draft for a safer HuggingFaceDatasetSaver
* Rename (and replace) gr.SaferHuggingFaceDatasetSaver as gr.HuggingFaceDatasetSaver
* update changelog
* ruff
* doc
* tmp work
* merge 2 classes
* remove useless code
* adapt tests
* Update gradio/flagging.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update CHANGELOG.md
* fix typing
* code formatting
* removed print from tests
* removing imports
* removing imports
* fix paths
* formatting
* wording
* formating
* fix tests
---------
Co-authored-by: testbot <lucainp@hf.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* merge
* Allow state to be rendered multiple times (#4030 )
* state render
* add test
* formatting
* changelog
* Allow decoding b64 string without header in processing utils (#4031 )
* allow decoding b64 string without headers
* install gradio-client in edittable mode
* update GH actions
* add test for decoding headerless b64
* add test for decoding headerless b64 image
* some linting
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Sets matplotlib backend to agg before rendering math (#4029 )
* matplotlib-agg
* fix
* context manager
* Update CHANGELOG.md
* update demos
* linting
* removed warning
* fix test
* fixes
* fix tests
* Upgrade pyright to 1.1.305 (#4042 )
* Fastapi Python Client Guide (#3892 )
* fastapi guide
* changelog
* writing
* finish guide
* fix
* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* dependencies
* html
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* fix overflowing gutter and dark mode base color (#4051 )
* Add ability to blocklist filepaths, ability to specify where gradio temp files are created (#4047 )
* temporary file
* tests
* formatting
* rename
* added another test
* guide
* formatting
* changelog
* added custom gradio temp directory (#4053 )
* added custom gradio temp directory
* Update 03_sharing-your-app.md
* rename test
* address review
* remove print
* Chatbot code syntax highlighting (#4048 )
* first pass
* fixes
* more fixes
* remove breaks
* format
* version
* pr fixes
* changelog
* test fix
* background color
* format
* revert test fix
* changes
* changes
* test
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* Fixes issue with indentation in code field with streaming (#4043 )
* indent fix
* fix
* changelog
* fix overflowing gutter and dark mode base color (#4051 )
* Add ability to blocklist filepaths, ability to specify where gradio temp files are created (#4047 )
* temporary file
* tests
* formatting
* rename
* added another test
* guide
* formatting
* changelog
* added custom gradio temp directory (#4053 )
* added custom gradio temp directory
* Update 03_sharing-your-app.md
* rename test
* address review
* remove print
* Chatbot code syntax highlighting (#4048 )
* first pass
* fixes
* more fixes
* remove breaks
* format
* version
* pr fixes
* changelog
* test fix
* background color
* format
* revert test fix
* changes
* changes
* test
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* fix
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* [create-pull-request] automated change (#4059 )
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changelog (#4064 )
* New Version Docs (#4069 )
* [create-pull-request] automated change
* Trigger Build
---------
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* Soft theme fix (#4070 )
* fix
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Empty gallery fix (#4072 )
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix bug where functions with type hints caused errors (#4068 )
* Fix + test
* CHANGELOG
* Update test/test_utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* More Ruff rules (#4038 )
* Bump ruff to 0.0.264
* Enable Ruff Naming rules and fix most errors
* Move `clean_html` to utils (to fix an N lint error)
* Changelog
* Clean up possibly leaking file handles
* Enable and autofix Ruff SIM
* Fix remaining Ruff SIMs
* Enable and autofix Ruff UP issues
* Fix misordered import from #4048
* Fix bare except from #4048
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* [WIP] Language Agnostic Typing in `/info` route (#4039 )
* First commit
* All serializers
* Remove output type
* Add route
* Format json
* Modify dropdown and slider choices
* Fix impl
* Lint
* Add tests
* Fix lint
* remove breakpoint
* Tests passing locally
* Format code
* Address comments
* Use union + fix tests
* handle multiple file case
* Add serializer to info payload
* lint
* Add to CHANGELOG
* grc version
* requirements
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Keep hidden Accordion content in DOM (#4073 )
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Theme builder fixes (#4080 )
* theme-builder-fixes
* theme-builder-fixes
* fix expand issue
* changes
* Update gradio/themes/builder_app.py
* changelog
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
* Misc file and docs fixes (#4086 )
* uvicorn version
* uvicorn version
* changes
* guides
* guide
* changelog
* typo
* typo
* Update guides/04_integrating-other-frameworks/01_using-hugging-face-integrations.md
* chinese lang
* rename
* Update guides/04_integrating-other-frameworks/01_using-hugging-face-integrations.md
* Update guides/03_building-with-blocks/04_custom-CSS-and-JS.md
Co-authored-by: aliabid94 <aabid94@gmail.com>
* address review
* simplify section
---------
Co-authored-by: aliabid94 <aabid94@gmail.com>
* Removing "State" from view API info (#4107 )
* wip pr
* update client version
* update space fetcher
* changelog, workflow
* fix not flaky tests
* lint
* v2
* Dont send request to `/info` if version before 3.28.3 (#4109 )
* Add code
* Lint
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Upload audio ios (#4071 )
* changes
* changes
* change
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Allow textbox / number submits to trigger Interface submit (#4090 )
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix slider released event not triggering when released on mobile (#4098 )
* Fix slider released event not triggering when released on mobile
* Update CHANGELOG
* fix range test
* retrigger
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix then logic to work after failures (#4115 )
* change
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fixes to view API page (#4112 )
* logo
* fix for new info and logo path
* changelog
* remove example_input from returns
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Add support for async generators (#3821 )
* Add impl + unit test
* CHANGELOG
* Lint
* Type check
* Remove print
* Fix tests
* revert change
* Lint
* formatting
* Fix test
* Lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* release (#4116 )
* Bumpt client version (#4125 )
* New Version Docs (#4131 )
* [create-pull-request] automated change
* Trigger Build
---------
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* Fix create version docs action (#4130 )
* define version instead of upgrading
* add sleep
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix dev docs (#4132 )
* Move .config/README.md to js/README.md
* Link js/README.md from CONTRIBUTING.md
* Update CHANGELOG.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changelog (#4136 )
* Fix website build issue (#4142 )
* upgrade pnpm
* changelgo
* Fix python client test (#4138 )
* Fix python client test
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix isssue with running with nginx (#4133 )
* nginx-root
* fix
* ability to set root path
* removed root
* removed root
* fix
* changelog
* Update gradio/routes.py
Co-authored-by: aliabid94 <aabid94@gmail.com>
* Update gradio/routes.py
Co-authored-by: aliabid94 <aabid94@gmail.com>
---------
Co-authored-by: aliabid94 <aabid94@gmail.com>
* Record username when flagging (#4135 )
* record username
* fix
* changelog fix
* format
* fix hf saver
* fix deserialization
* fixes
* Fix api info for File component (#4153 )
* Fix output file type info
* Fix example inputs
* CHANGELOG
* Update client
* Add test
* Bump version
* Bump min client version
* Update .prettierignore adding client/js/dist and .venv (#4160 )
* Fix the prettier.ignorePath field in the VSCode workspace settings (#4164 )
Co-authored-by: pngwn <hello@pngwn.io>
* simplify format of changelog (#4163 )
* Fix the wildcard in .editorconfig to match files in nested directories (#4165 )
* Fix the wildcard in .editorconfig to match files in nested directories
* Remove a wrong whitespace in a brace expansion notation in .editorconfig
---------
Co-authored-by: pngwn <hello@pngwn.io>
* Fix flaky interface test (#4168 )
* Fix test
* Lint
* Fix vs code lint
* Adds missing components to gradio client serializing's component mapping (#4167 )
* add missing serialization
* format
* update release note format
* update release note format
* fix test
* Release 3.30 (#4166 )
* release
* requirements
* [Docs] Resolve numerous typos (#4170 )
* Resolve numerous typos
* Delete test.py
* Run generate_notebooks
* notebooks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* New Version Docs (#4172 )
* [create-pull-request] automated change
* Update v3.30.0_template.html
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Dispatch dropdown change on value change for any reason (#4128 )
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* hotfix for test (#4173 )
* hotfix for test
* removed comment
* 3712 js client (#3899 )
* update ci (#4184 )
* bump client version (#4185 )
* bump client version
* ignore spaces-test
* Fix (#4186 )
* bump client version
* ignore spaces-test
* fix
* update token for npm action (#4187 )
* change (#4189 )
* ci typo (#4190 )
* Fix npm publish again again (#4191 )
* ci typo
* fix
* Fix npm publish again again (#4192 )
* ci typo
* fix
* again
* Fix npm publish again again (#4193 )
* ci typo
* fix
* again
* again
* Add format argument to Audio (#4178 )
* 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>
* chore: update versions (#4188 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix npm publish again again (#4195 )
* ci typo
* fix
* again
* again
* again
* client docs tweaks (#4196 )
* ci typo
* fix
* again
* again
* again
* ignore workbench
* small tweaks for publish + docs
* Fix "TypeError: issubclass() arg 1 must be a class" When Optional args (#4200 )
* 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>
* Fix semiver import (#4201 )
* fix token (#4208 )
* fix token
* add label
* Fix Explanation Regarding NumPy Image Component (#4204 )
* 20230513 swap np height and width in docs
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Correct stacklevel for check_deprecated_parameters (#4203 )
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* Update CONTRIBUTING.md (#4220 )
* 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>
* 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>
* Increase websocket messaging timeout (#4235 )
* increase websocket timeout
* changelog
* 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>
* Some tweaks to the Client (#4230 )
* parameter names
* tweaks
* separate out serialize
* fix
* changelog
* fix
* fix
* improve test
* 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>
* 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>
* fix cancels (#4225 )
* fix cancels
* changelog
* refactor to make it work
* chore: update versions (#4207 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix publish (#4240 )
* fix npm publish
* fix npm publish
* release (#4219 )
Co-authored-by: pngwn <hello@pngwn.io>
* Fixes chatbot_dialogpt demo (#4238 )
* demo fix
* changelog
* fix
* demo
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* make workbench private (#4247 )
* 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>
* 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>
* [create-pull-request] automated change (#4250 )
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
* Fix run on click (#4258 )
* fix run on click
* changelog
* Upgrade black to 23.3 (#4259 )
* Upgrade black
* Conservatively upgrade packaging too since it's black's dependency
* Using marked for chatbot markdown parsing (#4150 )
* fix info request in js client (#4271 )
* fix info request in js client
* changelog
* Temp file fixes (#4256 )
* Fix bug
* Linting
* CHANGELOG
* Add tests
* Update test
* Fix remaining components + add tests
* Fix tests
* Fix tests
* Address comments
* Ensure error modal display as expected when using the queue (#4273 )
* 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>
* Katex support in chatbot (#4285 )
* katex
* katex support
* changelog
* fixes
* pr fixes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Release 3.32.0 (#4293 )
* release 3.32.0
* changelog
* 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>
* 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>
* 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>
* 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>
* Fix typo in client/js/README.md (#4310 )
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chore: update versions (#4283 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* 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>
* 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>
* Remove a bunch of unused frontend code (#4275 )
Co-authored-by: pngwn <hello@pngwn.io>
* 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>
* 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>
* 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>
* Do not send HF token to other domains via `/proxy` (#4368 )
* test
* fix
* changelog
* fix, add warnings
* 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>
* Prevent path traversal in `/file` routes (#4370 )
* add tests
* add tests
* file route fix
* update tests
* formatting
* file access
* cleanup
* cleaning
* fix tests
* Favicon fix for Windows (#4369 )
* favicon fix
* changelog
* svg
* remove favicon
* actual fix
* Add pypi classifiers to pyproject.toml (#4383 )
* Add pypi classifiers to pyproject.toml
* Add OS classifier
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* 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>
* 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>
* release 3.33.0 (#4392 )
Co-authored-by: aliabid94 <aabid94@gmail.com>
* Restore offline support (#4398 )
* changes
* changes
* changes
* 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>
* Fix Base parent in Docs, add Group (#4391 )
* fix base parent
* add group to docs
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* Update message when share link binary is blocked (#4380 )
* update share link message
* address suggestion
* changelog
* fix
* formatting
* 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>
* v3.33.1 + Guide on setting up Gradio behind nginx... (#4379 )
* nginx guide
* delete 3.33.0
* version
* unindent
* Prevent label change event from triggering itself (#4371 )
* Fix the Node and pnpm setup actions (#4394 )
* Run `pnpm i` with pnpm@8.6.0 to re-generate the lock file (#4393 )
* fix indent (#4404 )
* 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>
* merge
* fixes
* changes
* more changes
* notebook
* changelog
* error handle backend
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Adds `variant` and `interactive` props to `gr.UploadButton` (#4436 )
* upload button
* fix index
* changelog
* formatting
* cleanup
* 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>
* Fix Safari video playback (#4433 )
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* test fix
* test
* tests
* fix ui test
* format
* Increase version gradio-client version/changelog (#4441 )
* Increase version gradio-client version/changelog
* req
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fixes
* notebook
* fixed tests finally
* format
* python test fix
* test fix
* remove style from test
* Update CHANGELOG.md
* theme test fix
---------
Co-authored-by: Artemy Egorov <artegoser@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: testbot <lucainp@hf.co>
Co-authored-by: 1lint <105617163+1lint@users.noreply.github.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: space-nuko <24979496+space-nuko@users.noreply.github.com>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: Tom Aarsen <37621491+tomaarsen@users.noreply.github.com>
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: LingFeng.Chen.Cn <lingfeng.chen.cn@gmail.com>
Co-authored-by: Der Chien <b03902015@ntu.edu.tw>
Co-authored-by: Micky Brunetti <micky2be@users.noreply.github.com>
Co-authored-by: David Ai <davidai2018@gmail.com>
Co-authored-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
Co-authored-by: thiswillbeyourgithub <github@32mail.33mail.com>
Co-authored-by: Paul Garner <ego@anentropic.com>
Co-authored-by: WilliamRoyNelson <william.roy.nelson@gmail.com>
Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>
Co-authored-by: Yan <alvindaiyan@gmail.com>
Co-authored-by: Shavit <shavit@users.noreply.github.com>
Co-authored-by: dkjshk <xie0510@126.com>
2023-06-10 21:12:11 -04:00
pngwn
3d334e245f
implement autoplay for Video and Audio ( #4453 )
2023-06-09 08:27:58 +09:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Der Chien
4e4549c063
Fix Explanation Regarding NumPy Image Component ( #4204 )
...
* 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
Freddy Boulton
8deab23623
Add format argument to Audio ( #4178 )
...
* 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
963c2d26ee
3712 js client ( #3899 )
2023-05-12 16:22:25 +01:00
Tom Aarsen
02bd90d7c1
[Docs] Resolve numerous typos ( #4170 )
...
* Resolve numerous typos
* Delete test.py
* Run generate_notebooks
* notebooks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 15:20:41 -05:00
Abubakar Abid
e6198752c6
Adds missing components to gradio client serializing's component mapping ( #4167 )
...
* add missing serialization
* format
* update release note format
* update release note format
* fix test
2023-05-11 11:33:14 -05:00
Freddy Boulton
c4a884a9a7
Fix flaky interface test ( #4168 )
...
* Fix test
* Lint
* Fix vs code lint
2023-05-11 10:53:45 -05:00
Freddy Boulton
96c17a7470
Add support for async generators ( #3821 )
...
* Add impl + unit test
* CHANGELOG
* Lint
* Type check
* Remove print
* Fix tests
* revert change
* Lint
* formatting
* Fix test
* Lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-05-08 23:21:47 -05:00
aliabid94
5ef0bfeefc
Allow textbox / number submits to trigger Interface submit ( #4090 )
...
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-08 20:51:05 -05:00
Freddy Boulton
b66ecff671
[WIP] Language Agnostic Typing in /info
route ( #4039 )
...
* First commit
* All serializers
* Remove output type
* Add route
* Format json
* Modify dropdown and slider choices
* Fix impl
* Lint
* Add tests
* Fix lint
* remove breakpoint
* Tests passing locally
* Format code
* Address comments
* Use union + fix tests
* handle multiple file case
* Add serializer to info payload
* lint
* Add to CHANGELOG
* grc version
* requirements
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-05 19:10:34 -05:00
Aarni Koskela
d1853625fd
More Ruff rules ( #4038 )
...
* Bump ruff to 0.0.264
* Enable Ruff Naming rules and fix most errors
* Move `clean_html` to utils (to fix an N lint error)
* Changelog
* Clean up possibly leaking file handles
* Enable and autofix Ruff SIM
* Fix remaining Ruff SIMs
* Enable and autofix Ruff UP issues
* Fix misordered import from #4048
* Fix bare except from #4048
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 21:54:23 -05:00
Freddy Boulton
71f1e654ab
Fix bug where functions with type hints caused errors ( #4068 )
...
* Fix + test
* CHANGELOG
* Update test/test_utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 21:38:41 -05:00
Dawood Khan
0f4a922444
Fixes issue with indentation in code field with streaming ( #4043 )
...
* indent fix
* fix
* changelog
* fix overflowing gutter and dark mode base color (#4051 )
* Add ability to blocklist filepaths, ability to specify where gradio temp files are created (#4047 )
* temporary file
* tests
* formatting
* rename
* added another test
* guide
* formatting
* changelog
* added custom gradio temp directory (#4053 )
* added custom gradio temp directory
* Update 03_sharing-your-app.md
* rename test
* address review
* remove print
* Chatbot code syntax highlighting (#4048 )
* first pass
* fixes
* more fixes
* remove breaks
* format
* version
* pr fixes
* changelog
* test fix
* background color
* format
* revert test fix
* changes
* changes
* test
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* fix
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-05-04 10:35:34 -05:00
Dawood Khan
c06901ed05
Chatbot code syntax highlighting ( #4048 )
...
* first pass
* fixes
* more fixes
* remove breaks
* format
* version
* pr fixes
* changelog
* test fix
* background color
* format
* revert test fix
* changes
* changes
* test
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-05-04 03:28:39 -05:00
Abubakar Abid
ff21ecbc25
Add ability to blocklist filepaths, ability to specify where gradio temp files are created ( #4047 )
...
* temporary file
* tests
* formatting
* rename
* added another test
* guide
* formatting
* changelog
* added custom gradio temp directory (#4053 )
* added custom gradio temp directory
* Update 03_sharing-your-app.md
* rename test
* address review
* remove print
2023-05-03 17:30:38 -05:00
Aarni Koskela
4d629f04cc
Upgrade pyright to 1.1.305 ( #4042 )
2023-05-02 13:20:35 -05:00
Abubakar Abid
2be3ea1cc7
Sets matplotlib backend to agg before rendering math ( #4029 )
...
* matplotlib-agg
* fix
* context manager
* Update CHANGELOG.md
* update demos
* linting
* removed warning
* fix test
* fixes
* fix tests
2023-05-01 23:59:31 -05:00
1lint
f97b18ec9d
Allow decoding b64 string without header in processing utils ( #4031 )
...
* allow decoding b64 string without headers
* install gradio-client in edittable mode
* update GH actions
* add test for decoding headerless b64
* add test for decoding headerless b64 image
* some linting
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-01 18:24:54 -05:00
Abubakar Abid
f1ea4f79af
Allow state to be rendered multiple times ( #4030 )
...
* state render
* add test
* formatting
* changelog
2023-05-01 17:53:51 -05:00
Omar Sanseviero
398115b39a
Support new tasks with Hugging Face integration ( #3887 )
...
* Update pipelines.py
* Add pipelines that run models locally
* Fix typo
* Add new pipelines with API
* Add changelog
* changelog
* changes
* fix tests
* linting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-05-01 12:18:58 -05:00
Lucain
b4206cd33a
Safer HuggingFaceDatasetSaver
(and deprecate HuggingFaceDatasetJsonSaver
) ( #3973 )
...
* Draft for a safer HuggingFaceDatasetSaver
* Rename (and replace) gr.SaferHuggingFaceDatasetSaver as gr.HuggingFaceDatasetSaver
* update changelog
* ruff
* doc
* tmp work
* merge 2 classes
* remove useless code
* adapt tests
* Update gradio/flagging.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update CHANGELOG.md
* fix typing
* code formatting
* removed print from tests
* removing imports
* removing imports
* fix paths
* formatting
* wording
* formating
* fix tests
---------
Co-authored-by: testbot <lucainp@hf.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-01 11:59:41 -05:00
Aarni Koskela
12a97746ff
Ruff update + strictening ( #3979 )
...
* Update ruff to 0.0.263
* Get rid of bare except:s
* Fix two Ruff E731s by moving expand_{color,size} to the relevant classes
* Fix Ruff E731 and some variable shadowing in theme builder
* Fix remaining Ruff E731s
* Get rid of unused Ruff ignores
* Fix ruff B904 issues (raise from)
* Fix Ruff B007: loop-control variable not used
* Fix Ruff B011 (do not assert false)
* Remove unused args and kwargs from Progress.tqdm() (spotted via Ruff B026)
* Fix mutable argument default in CheckboxGroup
* Noqa ABC-related lint warnings for Interpretable
* Add missed assert in test_queueing (ruff B015)
* Enable ruff B
* Enable ruff C and fix issues
* Add changelog
* Add UP03[012] after #3984
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 17:59:42 -04:00
Aarni Koskela
d25226f704
Use f-strings where possible ( #3984 )
...
* Use f-strings where possible
Semi-automated using ikamensh/flynt
* Update gradio/utils.py
* Update gradio/interface.py
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-27 16:09:50 -04:00
Freddy Boulton
7de41d94bb
After closing demo, reuse port if its specified ( #3959 )
...
* Reuse port when its specified after closing demo
* Add to changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-25 10:07:35 -04:00
Micky Brunetti
5e9c3b0ac8
Fix HTTP code for file request (static, assets, file) ( #3895 )
...
* Fix HTTP code for file request (static, assets, file)
* Fix bugs related to utils.abspath for symlink and unresolvale path
* Requesting a directory from the file route now returns 403
2023-04-20 15:18:33 -04:00
January Desk
e0eea96766
Fix false positive warning in check_function_inputs_match
( #3837 )
...
* fix false positive warning of check_function_inputs_match
* apply linter
* Update CHANGELOG and add comments in test
* Lint
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-19 15:44:28 -04:00
Hyoung-Kyu Song
d8bfa63a38
theme builder example doesn't work for 3.25.0
or later ( #3869 )
...
* theme builder example doesn't work for `3.25.0` or later
Fixes #3864
* update CHANGELOG.md
* Fix import order
* Lint
* added test
* add wheel
* wheel
* wheels
* pip
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-16 03:22:45 -07:00
aliabid94
1b4925712b
HighlightedImage component ( #3836 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* rename
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* change
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-14 13:11:27 -07:00
Abubakar Abid
d3b7f73bcf
Update view api page to use Python client ( #3765 )
...
* Update view api page
* simplify
* update
* changes
* changes
* updated info
* formatting
* changes
* fixes
* save
* moved
* remove test input
* tweaks
* formatting
* add raw
* serialize
* fixes
* refactor
* fixes
* fixes
* Fetch api
* lower case
* view api
* fix tests
* format
* rough design
* readme
* api docs
* examples
* format
* formatting
* format
* version
* client changes
* formatting
* update client
* more example inputs
* api docs fixes
* remove notebook
* fix demo
* demo notebook
* styling on code snippet
* formatting
* fix audio, model3d
* format
* fix tests
* version
* cleanup
* format
* format
* format
* fixes
* version
* fix tests
* version
* format
* test
* format
* changelog
* changelog
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-13 16:20:33 -07:00
Greysuki
54af6ae290
Adding subtitles to gr.Video
( #3673 )
...
* v2 version now accepts video and subtitle format inputs.
* remove debug log and some format issue
* Update CHANGELOG.md
* Upload components.py and regenerate demo
* fix components and add comment to function
* fix postprocess return format
* changelog
* demo change to gr.Interface type
* fix file_types
* fixes
* added video serializer
* clean up preprocess
* clean up postprocess
* formatting
* frontend
* fixed serialization
* dataclass
* fix serialize
* version
* fix tests
* version
* changelog
* typing
* version
* changelog
* version
* versin
* fix tests
* fix tests
* backend
* test
* changes
* relax test
* fix demo
* notebook
* changes
* fix
* changes
* Update gradio/components.py
* Update client/python/gradio_client/client.py
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-11 16:06:48 -07:00
aliabid94
379b6f662e
Get Image click coordinates from .select
( #3786 )
...
* changes
* changes
* fix demo notebook
* changes
* changes
* chagnes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-10 14:47:33 -07:00
space-nuko
303b4dc0b5
Improve error messages for when argument lists mismatch ( #3519 )
...
* Improve error messages for when argument lists mismatch
* Fix comment
* Update changelog
* Fix typeerror
* Fix single output case
* Add argument validation tests
* Lint
* Move changelog to correct section
* Fix typo
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-04-07 13:22:42 -04:00
Abubakar Abid
5f8186218c
Document python client in gradio.app/docs ( #3764 )
...
* document py client
* more changes
* update docs
* changes
* fix tests
* formatting
* stash
* fix tests
* documentation
* more docs
* gradio client
* changes
* rework documentation
* add to docs
* modify dockerfile
* gradio client
* address feedback
* formatting
* gradio client version
* fix tests
* tweaks to website
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-06 12:58:42 -07:00
space-nuko
ebfce0f784
Make gr.Code
support lines
, expand to fill entire element ( #3651 )
...
* Make `gr.Code` support `lines`, expand to fill entire element
* Update changelog
* Fix typeerrors
* Fix test
* fix interactive bug with update
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-04-06 15:52:57 +01:00
Abubakar Abid
c0d70a7af5
Fix for default file name of recorded audio files ( #3770 )
...
* mic name
* changelog
* marked as flaky
2023-04-05 13:20:03 -07:00
Freddy Boulton
070b304e09
CI tweaks ( #3752 )
2023-04-04 14:02:20 -04:00
Aarni Koskela
ef3862e075
Switch linting to Ruff ( #3710 )
...
* Sort requirements.in
* Switch flake8 + isort to ruff
* Apply ruff import order fixes
* Fix ruff complaints in demo/
* Fix ruff complaints in test/
* Use `x is not y`, not `not x is y`
* Remove unused listdir from website generator
* Clean up duplicate dict keys
* Add changelog entry
* Clean up unused imports (except in gradio/__init__.py)
* add space
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 15:48:18 -07:00
Dan Sully
f868890cfe
Support IPv6 addresses for --server-name ( #3695 )
...
* Support IPv6 addresses for --server-name
* Update changelog now that I have a PR number.
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-04-03 13:34:15 -04:00
aliabid94
759fb3b1f2
Fix chatbot newline issue ( #3717 )
...
* changes
* changes
* changes
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-31 07:46:27 -05:00
aliabid94
09aedce77c
Theme builder ( #3664 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/themes/builder.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-30 11:20:34 -07:00
Freddy Boulton
f97b5c0c72
Add orig_name field to video outputs ( #3700 )
...
* Add orig_name to video
* Fix test
* CHANGELOG
* Lint
2023-03-29 20:34:04 -04:00
Abubakar Abid
2a8c82de01
Documentation-related fixes to the python client ( #3663 )
...
* docstring
* add documentation
* added more serialization classes
* format
* info
* is valid
* formatting
* changes
* fixups
* fix tests
* machine readable
* formatting
* client
* format
* tweaks on printing
* version
* linting
* fix tests
* update pypi requirements
* updates
* type ignore'
* fixes
* formatting
2023-03-29 15:00:20 -07:00
Abubakar Abid
dc37ddb739
fix sort script ( #3696 )
...
* fix sort script
* formatting
* script
2023-03-29 16:39:40 -04:00
space-nuko
df98c443f7
Fix default parameters value and gr.Progress in same function ( #3671 )
...
* Fix default parameters value and gr.Progress in same function
* Update changelog
* Fix tests
* Format
* Expand tests for other types of special function arguments
* Augment SelectData tests
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-28 19:37:38 -07:00
Abubakar Abid
fec48570c7
Load upstream theme ( #3641 )
...
* theme loading
* upstream theme
* version
* format themes
* fixes
* tests
* one more test
* fix test
* address review
2023-03-28 13:34:27 -07:00
Freddy Boulton
ceb5853480
Raise errror if event queued but queue is not enabled ( #3640 )
...
* Raise Error
* CHANGELOG
* Add progress tracking validate_queue_settings
* Update gradio/blocks.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 18:01:02 -07:00
Abubakar Abid
b1f8d11e4e
Fix windows flake ( #3650 )
...
* fix windows flake
* format backend
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-27 17:36:43 -07:00
space-nuko
212961ef6a
Support empty lists being used in gr.Dataframe
( #3646 )
...
* Support empty lists being used in `gr.Dataframe`
* Update changelog
* Add empty dataframe test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:55:11 -07:00
space-nuko
e6ea19dee9
Add Windows CI ( #3628 )
...
* Add Windows CI
* Update changelog
* fix
* Skip one test on Windows
* Preserve virtualenv path
* Skip another test on Windows
* Make conditional flaky
* Requested changes
* consistent os
* cleanup
* fix test for windows
* remove unnecessary check
* lint
* lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 11:55:59 -07:00
Abubakar Abid
1c8d3cb05d
Simplify tests ( #3608 )
...
* simplify tests
* imports
* imports
* formatting
* removed cometml typing
* simplify
* changelog
2023-03-24 12:39:30 -07:00
Dawood Khan
811d26aab4
Use gradio-api-server for telemetry ( #3488 )
...
* analytics
* changelog
* remove interface analytics
* ip
* remove import
* format
* theme name
* theme analytics
* format
* changelog
* fixes
* format
* remove unused param
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-24 13:01:31 -04:00
Abubakar Abid
7a4e22b61a
Fixes Blocks exit issue ( #3600 )
...
* fix
* changelog
* blocks
* formatting
2023-03-24 09:48:32 -07:00
Abubakar Abid
6e6121a1ac
Sets up the Python gradio
client ( #3300 )
...
* placeholder
* changelog
* added to readme
* client
* implement futures
* utils
* scripts
* lint
* reorg
* scripts
* serialization
* cleanup
* fns
* serialize
* cache
* callbacks
* updates
* formatting
* packaging
* requirements
* remove changelog
* client
* access token
* formatting
* deprecate
* format backend
* client replace
* updates
* moving from utils
* remove code duplication
* rm duplicates
* simplify
* galleryserializer
* serializable
* load serializers
* fixing errors
* errors
* typing
* tests
* changelog
* lint
* fix lint
* fixing files
* formatting
* type
* fix type checking
* changelog
* changelog
* Update client/python/gradio_client/client.py
Co-authored-by: Lucain <lucainp@gmail.com>
* formatting, tests
* formatting, tests
* gr.load
* refactoring
* refactoring'
* formatting
* formatting
* tests
* tests
* fix tests
* cleanup
* added tests
* adding scripts
* formatting
* address review comments
* readme
* serialize info
* remove from changelog
* version 0.0.2 released
* lint
* type fix
* check
* type issues
* hf_token
* update hf token
* telemetry
* docs, circle dependency
* hf token
* formatting
* updates
* sort
* script
* external
* docs
* formatting
* fixes
* scripts
* requirements
* fix tests
* context
* changes
* formatting
* fixes
* format fix
---------
Co-authored-by: Lucain <lucainp@gmail.com>
2023-03-23 15:33:44 -07:00
Freddy Boulton
926f3e21bf
Set theme name from load ( #3595 )
...
* Add name + test
* Add theme names
* CHANGELOG
* Delete theme in interface
2023-03-23 17:27:16 -04:00
Abubakar Abid
88afd684be
Makes some fixes related to TempFiles ( #3523 )
...
* temp file fixes
* changes
* fixing tests
* formatting
* fix
* fix chatbot processing
* tests
* get tests to pass
* fix code demo
* changelog
* fix multimodal
2023-03-21 09:37:24 -07:00
Abubakar Abid
c1b5d42cd2
Removes leading spaces from all lines of code uniformly in the gr.Code()
component ( #3556 )
...
* code changes
* changelog
2023-03-20 22:07:46 -07:00
Freddy Boulton
6fbd25399e
Add theme sharing tutorial to guide ( #3543 )
...
* Add theme sharing guide
* Misc updates
* Use bullet points
* Fix typo in 3.7 requirements
* List all built-in themes in guide
2023-03-20 16:57:53 -04:00
Freddy Boulton
ce1837f68c
Separate dependencies for python 3.7 and 3.9 ( #3548 )
...
* Separate dependencies
* Lint
* Install in dep + revert
* Typo
2023-03-20 16:02:17 -04:00
Freddy Boulton
8ec2b0b98a
Sharing themes ( #3428 )
...
* Rebase
* Remove build hooks
* Working implementation
* Add semver + unit tests
* CHANGELOG
* Add to docs
* Rename push_to_hub and fix typos
* Fix gallery
* Fix typo
* Address comments + tests
* Update gradio/themes/app.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Import Base as Theme. Use DefaultTheme() as fallback
* Fix types
* Make version and token truly optional
* Add version dropdown + tests
* trigger
* Support private themes and org_names
* Fix org_name typo
* Update wheel
* Fix font loading and dumping
* fixing tests
* fix tests
* formatting
* version
* remove requirements
* remove requirements
* formatting
* fix tests
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 20:15:02 -07:00
aliabid94
8114202697
Use soft theme instead of glass theme in demo ( #3503 )
...
* changes
* changes
* changes
* changes
* changes
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* undo merge break
* changes
* changes
* changes
* fix
* theme_to_soft
* changes
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 13:07:23 -07:00
space-nuko
52253b8bb1
Remove IOComponent.add_interactive_to_config
( #3476 )
...
* Remove `IOComponent.add_interactive_to_config`
* Move interactive mode conversion into postprocess
* Requested changes
* Update tests
* Fix test
* Fix test
* Fix test
* Fix test
* updating test file
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 08:13:19 -07:00
space-nuko
6ffa7f105e
Remove generate_sample()
method ( #3483 )
...
* Remove `generate_sample()` method
* Add changelog entry
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-16 14:22:25 -07:00
aliabid94
373c8dd716
Add elem classes ( #3466 )
...
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-15 14:01:53 -07:00
Radamés Ajna
226e87cd54
implement missing methods handle nested dict ( #3459 )
...
* implement missing methods handle nested dict
test for get 'user-agent'
extra example for gr.Requests
* missing notebook example
* add missing attributes, keys, values, items
* update changelog
* fix changelog
2023-03-14 15:15:12 -07:00
aliabid94
95bf08b2e2
Adding the .select event listener ( #3399 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changs
* changes
* changes
* changes
* changes
* changes
* changes
* preview
* fix notebook
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Add type hints (#3403 )
Co-authored-by: aliabid94 <aabid94@gmail.com>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* doc update
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-13 17:12:41 -07:00
Abubakar Abid
175dd160ec
Adds accepts
parameter to Code
component to control filepath/string ( #3450 )
...
* test
* wording
* remove show label
* show label
* adding example
* add examples
* make change
* Code
2023-03-13 13:59:23 -07:00
Dawood Khan
f8159aa5f4
Making the chatbot even more multimodal ( #3413 )
...
* multimodal chatbot
* notebook
* fix tests
* Update demo/chatbot_multimodal/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix notebook
* changelog
* Update CHANGELOG.md
* Update gradio/components.py
* Update gradio/components.py
* Update gradio/components.py
* fixing security issue
* updating demo
* formatting
* demo notebooks
* changes
* typing
* changes
* changes
* changes
* add test
* fixes
* renaming demos
* fixed demo
* fixes
* fix demos
* chatbot
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-13 07:21:03 -07:00
aliabid94
092b7448e6
consecutive triggers with .then
( #3430 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Update guides/03_building-with-blocks/01_blocks-and-event-listeners.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/blocks.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/chatbot_simple_demo/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/chatbot_simple_demo/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* allow nest
* changes
* changes
* changes
* changes
* changes
* events
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-11 20:38:22 -08:00
pngwn
11bb732f5d
add code component ( #3421 )
...
* add code component
* changes
* changes
* code
* add code to all_demos
* change remove prefix
* changes
* notebooks
* fix pythong types
* changelog
* cleanup
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add interactive kwarg
* fix focus
* changelog
* fix demo
* tests
* cleanup
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* change padding to compute from block label styles
* use neutral colours for sucess animation
* cleanup
* update document
* add changelog for fix
* fix documentation
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-10 17:52:17 +00:00
Dawood Khan
12fb005ac8
Analytics Refactor ( #3342 )
...
* hub telemetry
* more analytics
* format
* changelog
* Gradio Status Page (#3331 )
* add status page to error message
* changelog
* link to status page on website
* move link to the right
* merge
* merge
* Add option to display gallery in preview mode (#3345 )
* Add code + api
* CHANGELOG
* dropdown (#3338 )
* fix
* fixes
* format
* changelog
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix clear case
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Some improvements to Flag (#3289 )
* Fixes to button disable
* button
* formatting
* flagging fix
* fixes
* formatter
* changelog
* ormatting
* tests
* saving
* adding optionality for flagging
* updatest
* error catching
* updates
* changelog
* tests
* typing
* flag button
* formatting
* tests
* tests
* tests
* increased latency
* queue fix
* clear
* formatting
* fix
* fix tests
* Fix flaky external test (#3348 )
* Fix flaky external test
* CHANGELOG
* Undo accidental diff
* Fix flaky external test
* CHANGELOG
* Undo accidental diff
* Remove from changelog
* Use bunny file
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* updates
* format
* more updates
* threading
* fixes
* Fix error when using backen_fn and custom js at the same time (#3358 )
* Fix error when using backen_fn and custom js at the same time
* generate notebooks
* update changelog
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Fix File updating (#3375 )
* Fix
* Remove line
* Add unit test
* CHANGELOG
* Remove comment
* Updated chat ui (#3370 )
* test
* changes
* chagnes
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
* changes
* Update demo/chatbot_multimodal/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/chatbot_simple_demo/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fixes
* New Version Docs (#3376 )
* [create-pull-request] automated change
* empty commit
* [create-pull-request] automated change
* empty commit
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* requirements
* test requirements
* Release 3.20.1 (#3390 )
* release 3.20.1
* changelog
* merge
* New Version Docs (#3392 )
* [create-pull-request] automated change
* trigger ci
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* merge
* Remove everything related to encryption (#3396 )
* remove requirements
* deprecate encrypt
* remove flagging
* deprecate
* formatting
* lint
* Adds a Chinese translation for the `README` (#3394 )
* add chinese readme
* add chinese readme
* update changelog
* fix render_readme and english readme
* generate readme
* remove template and quickstart files
* link to chinese from english
* fix assets paths
* link to english from chinese
* change file location
* fix link
* fix link
* fix link
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* fix bad codeblock (#3401 )
* Always set queue=False if every is None for load events (#3391 )
* Always set queue=False if every is None
* CHANGELOG + linting
* Move to latest release section
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* JS client take 2 (#3388 )
* start
* change api
* integrate into gradio
* log
* try this
* format
* changes
* format
* fix css
* fix file
* fix #3282 avoid in-place dict updates (#3405 )
* fix #3282 avoid in-place dict updates
* add tests and changelog for PR3405
* Fix markdown embedded component in docs (#3410 )
* revert to old md component demo
* changelog
* Added a section on security (#3408 )
* security
* added section on security
* security
* changes from review
* Fix local tests (#3411 )
* document embed params
* fix tests
* cleanup
* cleanup
* cleanup
* revert
* changelog
* Document web component parameters (#3407 )
* document embed params
* changelog
* iframe
* fixed review changes
* requirements
* fixes
* format
* format
* requirements
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Jialei <3217223+jialeicui@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Uanu <92366232+uanu2002@users.noreply.github.com>
Co-authored-by: gitgithan <hanqi11991@hotmail.com>
2023-03-08 21:28:15 -05:00
Abubakar Abid
0036b2e0b0
Preserve uploaded file names ( #3412 )
...
* document embed params
* fix tests
* cleanup
* cleanup
* cleanup
* revert
* changelog
* changes
* merge
* fix paths
* uploaded files
* persist file names
* changelog
* formatting
* remove orig_name
* remove orig_name
* rm method
* pathlib
* remove test
* fix tests
* lint
* fix model3d issue
* remove zip
* fix tests
* fix tests
* formatting
* fix test
* fix test
2023-03-08 12:24:09 -08:00
Abubakar Abid
da9a9cfd35
Fix local tests ( #3411 )
...
* document embed params
* fix tests
* cleanup
* cleanup
* cleanup
* revert
* changelog
2023-03-07 14:30:04 -08:00
gitgithan
ee1a76fd10
fix #3282 avoid in-place dict updates ( #3405 )
...
* fix #3282 avoid in-place dict updates
* add tests and changelog for PR3405
2023-03-07 10:12:19 -08:00
Freddy Boulton
47d6231680
Always set queue=False if every is None for load events ( #3391 )
...
* Always set queue=False if every is None
* CHANGELOG + linting
* Move to latest release section
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-06 18:27:04 -07:00
Abubakar Abid
22c9254a12
Remove everything related to encryption ( #3396 )
...
* remove requirements
* deprecate encrypt
* remove flagging
* deprecate
* formatting
* lint
2023-03-06 15:06:23 -08:00
aliabid94
608d3b6250
Python backend to theming ( #2931 )
...
* add theme + theme atoms
* audio
* buttons
* chatbot
* forms
* start file
* complete file
* fixup workbench
* gallery
* highlighted text
* label
* json
* upload
* 3d model
* atoms
* chart
* md + html
* image
* plot + build
* table
* tabs
* tooltip
* upload
* tweaks
* tweaks + more tooling
* tweaks to padding/ lineheight
* app components _ start api docs
* format, more api docs
* finish api docs
* interpretation
* todos
* tweaks + cleanup
* tweaks + cleanup
* revert range tweaks
* fix notebooks
* fix test
* remove tw
* cleanup + login
* fix gitignore
* fix types
* run css script
* fix progress + tweaks
* update demos
* add css build to static check workflow
* tweak ci
* fix tests
* tweak markdown
* tweak chatbot + file
* fix tabs
* tweak tabs
* cleanup
* fix api docs
* fix example gallery
* add gradient to toast
* fix min height for interfaces
* revert tab changes
* update notebooks
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* fix
* changes
* changes
* changes
* changes
* changes
* changes
* undo radius
* undo radius
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* undo
* Add absolute imports
* mock theme in tests
* clean
* changes
* changes
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-06 12:52:31 -08:00
or25
75a1adee93
fixing issue #3178 ( #3227 )
...
* Update interface.py
if the first param is self, trim the param list
* Update CHANGELOG.md
* update and add test
* update and add test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-06 11:27:47 -08:00
Freddy Boulton
6242b2700e
Fix flaky external test ( #3348 )
...
* Fix flaky external test
* CHANGELOG
* Undo accidental diff
* Fix flaky external test
* CHANGELOG
* Undo accidental diff
* Remove from changelog
* Use bunny file
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-28 14:24:07 -05:00
Abubakar Abid
04ddce05b3
Some improvements to Flag ( #3289 )
...
* Fixes to button disable
* button
* formatting
* flagging fix
* fixes
* formatter
* changelog
* ormatting
* tests
* saving
* adding optionality for flagging
* updatest
* error catching
* updates
* changelog
* tests
* typing
* flag button
* formatting
* tests
* tests
* tests
* increased latency
* queue fix
* clear
* formatting
* fix
* fix tests
2023-02-28 10:29:34 -08:00
Freddy Boulton
53e4733f2a
Add types field to dependency config ( #3315 )
...
* Add to config
* CHANGELOG
* Safe pop
* Fix test
2023-02-24 20:07:31 -05:00
Abubakar Abid
f5e7b57ceb
Access username from gr.Request
class ( #3296 )
...
* updates to the gr.Request class
* auth
* adds username
* revert utils
* changelog
2023-02-24 11:40:34 -05:00
Dawood Khan
f36211050c
Dropdown Component Updates ( #3211 )
...
* dropdown
* more dropdown updates
* dropdown styling + option visibility
* changelog
* notebook
* fix test
* Allow more image formats (#3225 )
* add wildcard to image input
* simplify mime types
* changelog
* regen noteboks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
* fix webcam mirroring (#3245 )
* fix webcam
* changelog
* fix changelog
* fix changelog
* fix changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Add `interactive=False` mode to `gr.Button` (#3266 )
* add interactive=False to button
* add interactive=True by default
* changelog
* fix frontend
* fix backend test
* formatting
* review changes
* LaTeX height fix (#3258 )
* latex height fix
* changelog
* formatting
* em
* em
* accidentally added script (#3273 )
* Adding a script to benchmark the queue (#3272 )
* added benchmark queue script
* changelg
* fix instructions
* Fix matplotlib image size (#3274 )
* Fix matplotlib css
* CHANGELOG
* Undo lockfile
* Add timeouts to queue messages (#3196 )
* Fix + test
* Remove print statements + fix import for 3.7
* CHANGELOG
* Remove more print statements
* Add 60 second timeout for uploading data
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* icons
* separate options into component
* formatting
* changelog
* changelog
* fix ui tests
* formatting again...
* backend test fix
* format
* doc fixes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: fienestar <fienestar@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-23 16:32:18 -05:00
pngwn
372a3cca2f
3248 image ( #3277 )
2023-02-23 08:46:44 +00:00
Abubakar Abid
c4f23bf4b3
LaTeX fix attempt #2 ( #3276 )
...
* latex fix 2
* fix latex height
* latex
* fix test
* avoid hardcoding
2023-02-22 16:34:38 -06:00
Freddy Boulton
5df113a4d6
Add timeouts to queue messages ( #3196 )
...
* Fix + test
* Remove print statements + fix import for 3.7
* CHANGELOG
* Remove more print statements
* Add 60 second timeout for uploading data
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-21 16:44:18 -05:00
Abubakar Abid
e513f06e5e
LaTeX height fix ( #3258 )
...
* latex height fix
* changelog
* formatting
* em
* em
2023-02-21 14:12:03 -06:00
Joao Gante
595b314459
Links in updated markdown open in a new tab ( #3236 )
...
* links in updated markdowns open in a new tab
* update changelog
* fix test
* consolidation
* fix tests
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-21 05:33:07 -06:00
aliabid94
f34120c077
Support large files try 2 ( #3191 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* chagnes
* changes
* changes
* changes
* changes
* changes
* changes
* chnages
* changes
* changes
* merge
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-17 15:31:02 -08:00
Freddy Boulton
3530a86433
Fix bokeh Plots ( #3212 )
...
* Add implementation
* Simpler approach
* Fix extra updates
* Fix python tests
* CHANGELOG + add bokeh plot demo
* Center content
* Fix value=bokeh case
* Add image to changelog
* Add notebook file
* Undo accidental changes
* Add missing plot type
* Fix type hints
* Fix requirements
* Lint
* Fix requirements
* remove lorenz
* Fix notebooks
* Remove bokeh demo
* Fix plot
* Don't use beforeUpdate
* FIx demo: Add load_event + bump bokeh>3.0
* Only load bokeh if needed
* Fix tests
* lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-17 16:47:06 -05:00
Freddy Boulton
791418a0a7
Fix clear event ( #3218 )
...
* Fix clear event
* CHANGELOG
2023-02-17 10:20:57 -05:00
Abubakar Abid
d15590d49c
Persistent FRP ( #3149 )
...
* start
* adding share_token
* added token
* revert older changes
* revert older changes
* fixes
* revert
* print
* changes
* version
* changelog, version
* fix tests
2023-02-16 16:31:16 -06:00
Abubakar Abid
752ec0ef6a
Cache temp files created from base64 data ( #3197 )
...
* changes
* added workflow
* fix action
* fix action
* fix action
* changelg
* formatting
* fix
* Delete benchmark-queue.yml
* Delete benchmark_queue.py
* changelog
* lint
* fix tests
* fix tests
* fix for python 3.7
* formatting
2023-02-15 17:24:48 -06:00
Abubakar Abid
74d9080fcd
Miscellaneous warnings and errors ( #3194 )
...
* changes
* added workflow
* fix action
* fix action
* fix action
* warning for filetypes
* miscellaneous warnings and errors
* Delete benchmark-queue.yml
* Delete benchmark_queue.py
* changelog
* warning
* formatting
* changelog
* formatting
2023-02-14 16:21:09 -06:00
Abubakar Abid
d3371ec7d3
Fixes gr.utils.delete_none
( #3188 )
...
* changes
* added workflow
* fix action
* fix action
* fix action
* fixed delete none
* Delete benchmark-queue.yml
* Delete benchmark_queue.py
* changelog
* fixing tests
* format
2023-02-13 15:28:43 -06:00
Freddy Boulton
c06b4eab16
Bar Plot Component ( #3157 )
...
* Add code - first draft
* Getting better
* Work out the bugs
* Fix docstrings
* CHANGELOG
* Fix test
* Generate notebooks
* Add unit test
* Undo website package.lock
* Fix demo
* Fix notebooks
* Fix docstrings
* Improve example in CHANGELOG
* Address comments + feedback
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-09 16:42:25 -05:00
wfng92
f92109621a
Keep pnginfo metadata for gallery ( #3150 )
...
* Keep pnginfo metadata for gallery
* add test to pil_to_file for keeping image metadata
* Update CHANGELOG.md
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-09 10:20:50 -08:00
Abubakar Abid
85e8f3070c
Sagemaker check ( #3137 )
...
* kaggle check
* add tests
* sagemaker
* changelog
* type check
* update test requirements
2023-02-07 08:25:24 -08:00
Abubakar Abid
f37d17089d
Fixes components when loading private spaces ( #3068 )
...
* file routes
* adding access token
* add reverse proxy
* adding access token
* context
* rewrite
* frontend
* formatting
* changelog
* formatting
* fix tests
* fixed image issue
* fix frontend
* os removal
* Update test_external.py
* fixes to normalise
* version
* fixes so that functions work
* lint
* formatting
2023-02-07 07:55:51 -08:00
Freddy Boulton
9beb15b3ec
Turn Submit Button into Cancel Button for Interfaces with generators ( #3124 )
...
* Switch back from stop button
* Add unit test
* CHANGELOG
* Fix test
* lint
* Reset UI after exception
2023-02-06 14:30:21 -05:00
Max Audron
84afc51484
add argument to allow serving files from additional directories ( #3075 )
...
* add argument to allow serving files from additional directories
* tweaks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-05 18:04:26 -08:00
Abubakar Abid
a0248f26dd
Example caching now works with components without a label attribute (e.g. Column) ( #3123 )
...
* add non io component support for example caching
* chaneglog
2023-02-03 16:46:56 -08:00
Freddy Boulton
9b15e9a1f8
Update docs to explain how reload mode can be used with queue/auth ( #3089 )
...
* Add note to guide
* Add more explanation
* Undo changes
* CHANGELOG
* Make work with queue + fix docs
* Changelog fix
* Add unit test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-02 15:39:45 -05:00
Freddy Boulton
42ad0cbe45
Enable gradio to work on kaggle ( #3101 )
...
* enable share kaggle
* Add test
* CHANGELOG
* Add image to changelog
2023-02-01 11:53:53 -05:00
Freddy Boulton
faffddf8c7
Fix image rotation on iOS ( #3091 )
...
* rotate image based on exif tag
* rotate on backend
* CHANGELOG
* Only rotate if needed
* Add image comparison to changelog
---------
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2023-01-31 13:18:23 -05:00
Freddy Boulton
9ccfef0542
Fix auth on spaces ( #3049 )
...
* Add route alias
* on button click
* Fix config
* Do not redirect
* Use login to check if other route necessary
* Add message about HF spaces
* CHANGELOG
* Add gif to changelog
2023-01-30 11:11:32 -05:00
Abubakar Abid
df3a50b3cc
Running requests in background ( #3054 )
...
* formatting
* revert dmeo
* changelog
* fix tests
2023-01-25 18:01:39 +05:00
Freddy Boulton
18cc8a385c
Check file_types is a list ( #3048 )
...
* Add assertion for file_types
* Changelog
* Add logic to UploadButton
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-25 04:32:22 -05:00
Freddy Boulton
eac49196a7
Properly Restart Queue After App is Closed ( #3022 )
...
* Debug code
* Fix bug + add test
* CHANGELOG
* Update test
* Revert change
* Use 1 second sleep
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-01-24 10:52:09 -05:00
Abubakar Abid
61d2f15562
Fix to HuggingFaceDatasetSaver ( #3025 )
...
* hf flag fix
* fixed huggingface hub params
* formatting
* fix flagging tests
* add a try / catch
2023-01-20 20:15:45 -08:00
Abubakar Abid
862a8c7c71
Added symlink support ( #3037 )
...
* added symlink support
* changelog
* lint
* fix tests
* tests
2023-01-20 19:52:42 -08:00
Freddy Boulton
32af45cd0f
Add conversational and text-to-image pipelines to Interface.load ( #3011 )
...
* Add conversational and text-to-image
* remove redundant state
* CHANGELOG
* Add media to changelog
* Lint
* Format code
* Fix typos in CHANGELOG
2023-01-18 14:49:03 -05:00
Abubakar Abid
f7f5398e4c
Fixed old files route ( #3010 )
...
* fixed files route
* changelog
* formatting
2023-01-18 10:13:29 -08:00
Freddy Boulton
cab8d888dc
Fix validate url ( #2957 )
...
* Fix validate url
* Add unit test + fix impl
* Fix CHANGELOG
* Use head instead of get to check url
* Add head route for files
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-18 12:47:57 -05:00
Dawood Khan
1518f93c85
Fix issue where chatbot markdown support breaks older demos (removes <p> and /n) ( #3006 )
...
* fix
* chatbot test fix
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-17 22:46:42 +01:00
Abubakar Abid
055aab6e05
Fixing deserialize when loading external Spaces ( #3004 )
...
* deserialize
* changelog
2023-01-17 13:05:15 -08:00
pngwn
d6fbc32ed1
Theme base 2 ( #2840 )
...
* add theme + theme atoms
* audio
* buttons
* chatbot
* forms
* start file
* complete file
* fixup workbench
* gallery
* highlighted text
* label
* json
* upload
* 3d model
* atoms
* chart
* md + html
* image
* plot + build
* table
* tabs
* tooltip
* upload
* tweaks
* tweaks + more tooling
* tweaks to padding/ lineheight
* app components _ start api docs
* format, more api docs
* finish api docs
* interpretation
* todos
* tweaks + cleanup
* tweaks + cleanup
* revert range tweaks
* fix notebooks
* fix test
* remove tw
* cleanup + login
* fix gitignore
* fix types
* run css script
* fix progress + tweaks
* update demos
* add css build to static check workflow
* tweak ci
* fix tests
* tweak markdown
* tweak chatbot + file
* fix tabs
* tweak tabs
* cleanup
* fix api docs
* fix example gallery
* add gradient to toast
* fix min height for interfaces
* revert tab changes
* update notebooks
* fix generating status animation
* fix weird table scrollbar that only appears on freddy's computer
* format
* fix dataset in gallery mode
* cleanup
* fix notebooks
* tweaks
* fix notebooks
* change
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-01-17 12:47:40 -08:00
Freddy Boulton
2bbec4b41e
Fix file serialization so that output is json serializable ( #2999 )
...
* Add comments
* CHANGELOG
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-17 11:29:27 -08:00
Freddy Boulton
7ebe79a987
Fix interpretation events ( #2993 )
...
* Fix interpretation + test
* Changelog
* Empty
* Fix test
* Handle None case
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* lint
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-16 12:46:00 -05:00
Freddy Boulton
5c32ba31ba
Fix reload mode ( #2992 )
...
* Fix reload mode
* Add unit test
* Add to changelog
2023-01-16 12:17:41 -05:00
Dawood Khan
537fa11b78
Fixes file upload fails for files with zero size ( #2923 )
...
* fix file zero size erroe
* changelog
* fixes
* add a test
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 20:38:28 -08:00
aliabid94
34cf1e612b
Support media output, "/file=" endpoint on iOS ( #2961 )
...
* changes
* changes
* change
* changes
* changes
* change
* changes
* change
* changes
* changes
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 19:54:09 -08:00
Freddy Boulton
06b973bda4
Fix Loading Examples ( #2955 )
...
* Fix
* CHANGELOG
* Unit test
* Fix
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 18:51:05 -08:00
Anton Lozhkov
981cd1ea68
Fix the path check for long CSS strings in Blocks ( #2953 )
...
* Fix the path check for long CSS strings in Blocks
* Add a test
* Update changelog
2023-01-08 06:31:21 -05:00
Freddy Boulton
1dcacdb6c9
Fix bug in mount_gradio_app with queue enabled ( #2939 )
...
* Move to __exit__
* Add test
* Add unit test
* Add changelog
* fix test
* Fix test
* Fix Release notes
2023-01-08 05:42:57 -05:00
Dawood Khan
9fff1e0fe8
Enable multi-select on gradio.Dropdown ( #2871 )
...
* multiselect dropdown
* fixes
* more fixes
* changes
* changelog
* formatting
* format notebooks
* type fixes
* notebok fix
* remove console log
* notebook fix
* type fix
* Revert "format notebooks"
This reverts commit fb8762ecff
.
* notebook fix
* bug fixes
* Update CHANGELOG.md
* Excluding untracked files from demo notebook check action (#2897 )
* excluding untracked files from wget
* changelog
* fix setting default values
* typeability and arrow key support
* python types
* reformat
* another type check
* minor fixes + interactive false fix
* change remove token styling
* separate multiselect into separate file
* style fixes
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* some more style fixes
* small bug fix
* addressed pr comments
* fix active color highlighting
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-04 19:13:46 -05:00
Freddy Boulton
92797fd486
Fix File Downloading ( #2926 )
...
* Fix + test
* Changelog
2023-01-04 12:18:04 -05:00
Abubakar Abid
38c64a5b0e
More typing! ( #2906 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* interface.py
* attempt fix
* refactoring interface
* interface refactor
* formatting
* fix for live interfaces
* lint
* mix
* mix
* serialize fix
* formatting
* all demos queue
* networking
* added type check
* processing_utils
* more typing
* formatting
* type ignored processing utils
* s
* tunneling
* add interpretation
* more typing
* queuing
* serializing
* undo interpretation
* routes.py
* formatting
* component type
* addressed review
* lint
* typing
* documentation
* fixing pydantic
* routes
* fixed typing in routes
* fix tests
2023-01-03 13:13:11 -05:00
aliabid94
58b1a074ba
Add Progress Bar component ( #2750 )
...
* changes
* version
* changes
* fixes
* changes
* changes
* changes
* changes
* chagnes
* chagnes
* fix
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* version update
* Commit from GitHub Actions (Upload Python Package)
* changes
* changes
* changes
* fix
* changes
* changes
* changes
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* changes
* changes
* changes
* changes
* change
* changes
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/routes.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* change
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: GH ACTIONS <aliabid94@users.noreply.github.com>
2022-12-30 11:45:54 -08:00
Abubakar Abid
d46f0cd1ed
Refactored interface.py
( #2902 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* interface.py
* attempt fix
* refactoring interface
* interface refactor
* formatting
* fix for live interfaces
* lint
* serialize fix
* formatting
* all demos queue
* added type check
* formatting
2022-12-29 15:30:44 -05:00
Abubakar Abid
09ebf00332
Timeseries hotfix ( #2905 )
...
* time series hotfix
* formatting
* formatting
2022-12-29 14:21:29 -05:00
Abubakar Abid
a3d0fcfab1
Added typing to more files ( #2896 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
2022-12-29 12:33:12 -05:00
Abubakar Abid
de0c41c1c4
Enforcing typing in blocks.py
and context.py
( #2887 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
2022-12-27 16:54:47 -05:00
Jay Smith
571e5eb66c
Correct message when is_generating hits 500 code ( #2889 )
2022-12-27 10:31:27 -05:00
Abubakar Abid
88c9206159
Hotfix for tests related to #2721 ( #2886 )
...
* fixes
* formatting
2022-12-26 14:53:07 -05:00
Freddy Boulton
1765cf68ae
Make it so that default_enabled has no impact on queue behavior ( #2876 )
...
* Deprecate default_enabled + test
* CHANGELOG
* Remove docstring for deprecated param
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-21 16:11:20 -05:00
Freddy Boulton
943b4ed77a
Wrap value in list for CheckBoxGroup. ( #2866 )
...
* Value error
* Add test
* Wrap value
* CHANGELOG
* Re-enable Example pagination on the front-end (#2861 )
* Pass samples_per_page to examples
* Add to changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Value error
* Add test
* Wrap value
* CHANGELOG
* Update docstrings
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-20 18:02:18 -05:00
Freddy Boulton
ed2781d8d7
Re-enable Example pagination on the front-end ( #2861 )
...
* Pass samples_per_page to examples
* Add to changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-20 17:10:23 -05:00
Abubakar Abid
612ab0539e
Fixed loading Spaces that have components with default values ( #2855 )
...
* fixed load space default values
* changelog
* formatting
* tweak
* fix tests
2022-12-20 15:38:02 -06:00
Abubakar Abid
0879f0a296
Fixes flagging when allow_flagging
is set to "auto" ( #2695 )
...
* flagging fix
* formatting
* changelog
* auto
* auto
2022-12-20 15:27:14 -06:00
Freddy Boulton
96297c0bad
LinePlot ( #2807 )
...
* First draft
* Fix tests
* Fix pdb
* Figure out stroke dash + legend position
* Add legend position
* Add back gif
* Add demo + update demo
* Format notebooks
* Changelog
* More changelog
* Undo notebooks
* Reword
* Set lower bound for altair
* Modify docstrings
* Add LinePlot image to changelog
2022-12-20 11:13:51 -05:00
Abubakar Abid
4e7317036d
Adds an every
parameter to every component ( #2806 )
...
* bigquery draft
* updated guide
* orjson fix
* formatting
* changelog
* attach every
* removed queue=False
* added test
* formatting
* adding event
* wip
* fix implementation
* remove prints
* formatting
* lint
* formatting
* reset guide
* changelog
* fix tests
* added test
* changelog
* renamed
* renamed
* lint
2022-12-15 16:07:44 -06:00
Abubakar Abid
20057aa946
Create fewer temp files and make them consistently-named ( #2758 )
...
* tmp files
* components
* changes
* temp_file_sets
* TempFileManager class
* added file manager
* internal functions
* tests
* formatting
* changes
* video tests
* added tests for File
* cheetah image
* formatting
* tests for upload button
* temp files
* formatting
* changelog
* fixed audio
* tmp files
* tmp files
* gallery
* deprecated type=file
* fixing tests
* patch os.path.exists
* fixed test_video_postprocess_converts_to_playable_format
* fixed tests
* changelog
* fix tests
* formatting
* added a download_if_needed
* formatting
* fixed download
* fixed gallery demo
* fix tests
* version
* fix for mac
* consolidate
2022-12-15 14:37:09 -06:00
Dawood Khan
714ab2cc09
Audio waveform ( #2706 )
...
* utils func
* changes
* changes
* changes
* notebook
* fix
* changes
* change
* changes
* changes
* notebook fix
* changes
* changes
* changes
* change
* fix
* revert backend changes, gr.make_waveform
* notebook
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* format fix
* changes
* changes
* revert pnpm
* change
* change
* changes
* changes
* changes
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-15 12:35:22 -06:00
Abubakar Abid
074bf909ee
Better documentation of queuing parameters ( #2825 )
...
* better documentation of queuing parameters
* changelog
* added to guide
* deprecated param
* python 3.7 compat
2022-12-15 10:41:09 -06:00
Abubakar Abid
53005ab88a
Switch from SSH tunneling to FRP ( #2509 )
...
* FRP Poc (#2396 )
* FRP Poc
* Gracefully handle exceptions in thread tunneling
* comments
* Fix share error message when files are built locally (#2502 )
* fix share error message
* changelog
* formatting
* tunneling rename
* version
* formatting
* remove test
* changelog
* version
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Wauplin <lucainp@gmail.com>
* 2509
* updated url to testing.gradiodash.com
* gradiotesting
* format, version
* gradio.live
* temp fix for https
* remove unnecessary tests
* version
* updated tunnel logic
* formatting and tests
* load testing
* changes
* Make private method + generate privilege key (#2519 )
* rm load test
* frp
* formatting
* Update run.py
* Update run.py
* updated message
* share=True
* [DO NOT MERGE] Add pymux for FRP (#2747 )
* Add pymux for FRP
* Cleaning pyamux
* Cleaning pyamux + make it work
* Forgot the thread
* Reformat
* some logs to be removed afterwards
* added share to hello world
* Transform into object
* I guess it's cleaner now
* Handle 404 + Transform to object
* Fix params names
* Add debug
* windows fix
Co-authored-by: Wauplin <lucainp@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* removed share=True
* formatting
* hello world notebook
* version
* fixes
* formatting
* testing tunneling exists
* tests
* formatting
* lint
* Remove asyncio + kill proc on exit
* version
* version
* update changelog
* explicit message about reporting
Co-authored-by: Adrien <adrien@xcid.fr>
Co-authored-by: Wauplin <lucainp@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-12-14 08:10:45 -06:00