Abubakar Abid
bebfb72b35
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>
2023-05-07 08:48:24 -05:00
Abubakar Abid
de7b35adfb
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>
2023-05-06 08:15:41 -05:00
aliabid94
4c314c3d88
Keep hidden Accordion content in DOM ( #4073 )
...
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-06 08:00: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
aliabid94
f763912bc8
Empty gallery fix ( #4072 )
...
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 19:03:11 -05:00
aliabid94
1871c8eb3c
Soft theme fix ( #4070 )
...
* fix
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 17:50:11 -05:00
Abubakar Abid
0847901c89
changelog ( #4064 )
2023-05-04 11:52:49 -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
pngwn
35821febc3
fix overflowing gutter and dark mode base color ( #4051 )
2023-05-03 15:52:52 +01:00
Abubakar Abid
531f11d642
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>
2023-05-02 15:54:40 -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
Abubakar Abid
1f9584f9a7
Version 3.28.1 ( #4009 )
...
* changelog
* changelog
* Fix dropdown as output
---------
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-28 17:43:04 -04:00
aliabid94
89dc35c97d
Fix dropdown default issue ( #3996 )
...
* change
* change
* test
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 14:58:22 -04:00
aliabid94
2f8b9f8b03
UI fixes for themes ( #3590 )
...
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 14:31:41 -04:00
space-nuko
5c4a9b402e
Add Clear Mask button to sketch mode ( #3615 )
...
* Add Clear Mask button to sketch mode
* Update changelog
* fix bugs + change icon
* tweak
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-04-28 14:16:14 -04:00
aliabid94
8a31766a0e
Fix faded textbox on iOS / Safari ( #3993 )
...
* change
* changes
* changes
* changes
* changes
* formatting
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-28 10:53:44 -04:00
Aarni Koskela
fa55570b71
CI: Simplify Python CI ( #3982 )
...
* CI: use actions/setup-python's native caching
* CI: don't create virtualenvs (CI is run in an isolated context anyway)
* CI: clean up extra directory-creating step
* Changelog
* Update CHANGELOG.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 02:57:44 -04:00
Abubakar Abid
847247e1dd
version ( #3990 )
2023-04-27 16:35:55 -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
space-nuko
30f4556927
More dropdown fixes ( #3705 )
...
* Fix several dropdown bugs
- Stop reopening when arrow is pressed
- Fix not opening when value text is clicked
- Being unable to filter in single-select mode
- Change color of filter text
- Clear filtering text when focus is lost
* Fix more dropdown issues
- Filter being focused but options not opening
- Make actions triggered on keydown instead of keyup (better responsiveness)
* Select dropdown element if exact match
* Pop last multiselect element if backspaced into
* Fix even more dropdown issues
- Override default input component up/down arrow key action
- Active option preventing arrow key movement if exact match
* Don't truncate dropdown options in X direction
* Format
* Update changelog
* Fix
* Requested changes
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-27 12:56:39 -04:00
Aarni Koskela
37d52a753c
CI: only run backend lints once, not in all test environments ( #3960 )
...
* CI: only run backend lints once, not in all test environments
* Add needses
2023-04-26 15:41:06 -04:00
Greysuki
88a2b20997
Fix duplicate play commands in full-screen mode of Vidieo
( #3968 )
...
* fix
* changelog
* Update CHANGELOG.md
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-04-26 14:33:53 -04:00
Dawood Khan
ee78458c64
Fixes dropdown does not position itself at selected element when opened ( #3639 )
...
* fixes
* fix
* Update CHANGELOG.md
2023-04-25 09:12:38 -07: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
Aarni Koskela
90f25905d6
gradio.themes: get rid of useless re-exports + noqas ( #3958 )
...
* gradio.themes.utils: remove star re-exports
* gradio.themes: specify re-exports in __all__
* gradio.themes.app: import create_theme_dropdown from full module path
* Add changelog
* Yeet theme_dropdown CommitOperationAdd
* fixing broken theme path
* version
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-24 18:08:55 -07:00
Aarni Koskela
1598680376
Move Google Tag Manager code to analytics_enabled block in Blocks.svelte ( #3956 )
...
* Move Google Tag Manager code to analytics_enabled block in Blocks.svelte
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-24 13:27:20 -07:00
Tyé singwa
6b854eefd4
Allow image url as ChatBot response ( #3953 )
...
* fix(chatbot): allow url as chatbot response
* chore(changelog): update changelog
* fix: update per review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-24 08:45:04 -07:00
Ikko Eltociear Ashimine
4c0410579b
Fix typo in 07_other-tutorials/theming-guide.md ( #3952 )
...
* Fix typo in 07_other-tutorials/theming-guide.md
* Update CHANGELOG.md
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-24 10:01:20 -04:00
January Desk
7b0f48eb2c
Fixes data updating invoke the select
event ( #3861 )
...
* fix data updating invoke the `select` event
* Update CHANGELOG.md
* changes
* change
* change
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-23 18:33:40 -07:00
Tenzin
3b114cbc2b
Fixes typos ( #3931 )
...
* Fixes typos
* Update CHANGELOG.md
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-21 11:00:57 -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
Greysuki
1439b72f66
UI stuck caused by the 'selected' of DataFrame not being reset ( #3916 )
...
* dataframe error fix
* changelog
* demo launch fix
2023-04-20 10:27:52 -04:00
DavG25
9d7fde4f16
Fix TypeError when Blocks outputs parameter is set to None ( #3883 )
...
* Fix TypeError when Blocks outputs parameter is set to None
* Update changelog
---------
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-19 16:41:49 -04:00
aliabid94
ae30e5f292
Fix output image heights ( #3905 )
...
* changes
* changes
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-19 16:24:50 -04:00
Dawood Khan
c7f61599ba
Fix video not working in tab ( #3891 )
...
* fix
* fixes
* change
* Update CHANGELOG.md
* format
2023-04-19 13:12:54 -07:00
Simon Duerr
6e7abf8645
make use of gr. consistent ( #3901 )
...
* make use of gr. consistent
* add changelog
* Update CHANGELOG.md
* fix digit_classifier notebook
* lint
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-04-19 15:55:37 -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
Dawood Khan
a95f615ce8
Gallery height fix ( #3830 )
...
* gallery height fix
* fix
* changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-19 12:31:44 -07:00
Freddy Boulton
f81b8235c7
Fix bug multiple bokeh plots ( #3896 )
...
* Fix bug multiple bokeh plots
* CHANGELOG
2023-04-17 22:09:51 -04:00
Garrett Sutula
73ec7fb0a8
Add "ssl_verify" param to allow use of self-signed certs ( #3873 )
...
* Add "ssl_verify" param to allow use of self-signed certs
* Update changelog
* Add ssl_verify to queue.start()
* lint
* type check
* fix tests
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-17 15:24:59 -07:00
Greysuki
df7d645207
Fixed issue with old_value check in File ( #3859 )
...
* old_value check
* changelog
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-17 14:29:47 -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
Ali Abdalla
69e915832a
Add DESCRIPTION.md to image_segmentation demo ( #3866 )
...
* add description.md to image_seg
* changelog
2023-04-14 21:35:25 -07:00
Abubakar Abid
35507fd258
release 3.27 ( #3863 )
2023-04-14 20:30:20 -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
Dawood Khan
c772c6ae57
Fixes chatbot does not display code blocks correctly ( #3816 )
...
* fix
* changelog
* Update CHANGELOG.md
* style code blocks
* next beta version for release
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-12 14:04:47 -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
Abubakar Abid
e5fcbaa663
Version 3.25.0 ( #3812 )
...
* 3.25.0
* changelog
2023-04-10 15:44:28 -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
5a7610950e
Fix sketch tool gr.Image
not filling up the entire component size ( #3649 )
...
* Fix sketch tool `gr.Image` not filling up the entire component size
* Update changelog
* version
* version
* changes
* changes
* Update js/atoms/src/Block.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-10 14:27:02 -07:00
Freddy Boulton
ad50eaa63d
Fix Upload Button ( #3782 )
...
* Fix upload btn
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-10 14:38:56 -04: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
Devang Chavan
b5e342cad0
Solved API submission issue ( #3783 )
...
* Solved API submission issue
* changelog
---------
Co-authored-by: Devang Chavan <devang@pop-os.localdomain>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-07 01:09:13 -07:00
Freddy Boulton
5e3a8969ff
Always reset iterator state ( #3777 )
...
* Always reset iterator state
* Add test
* CHANGELOG + fix test:
* close
* Update gradio/routes.py
* Remove test for now
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-06 17:55:31 -04:00
Dawood Khan
88a487c07c
Add styles to gallery component ( #3586 )
...
* update gallery styles
* Set theme name from load (#3595 )
* Add name + test
* Add theme names
* CHANGELOG
* Delete theme in interface
* Trigger event when Slider number input is released (#3589 )
* Add event
* Add unit test
* CHANGELOG
* 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>
* Translate "or" for i18n (#3599 )
* Translate or for i18n
* CHANGELOG
* Fixes Blocks exit issue (#3600 )
* fix
* changelog
* blocks
* formatting
* 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>
* Simplify tests (#3608 )
* simplify tests
* imports
* imports
* formatting
* removed cometml typing
* simplify
* changelog
* fix wc error in dev mode (#3572 )
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* A few small fixes to docs / demos (#3611 )
* fixes
* remove binaries
* doc
* changelog
* typing
* run on windows
* cancels
* added clarifications
* Add docs for HF Json saver (#3604 )
* Add docs for flagging
* Fix params
* CHANGELOG
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* ensure css loads before mounting app (#3573 )
* ensure css loads before mounting app
* changelog
* fix tests
* change?
* changelog
* fix issue with missing version (#3632 )
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Fixes chatbot autoscroll + Textbox lines > 20 issue (#3637 )
* fixes
* changelog
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix embedded demos (#3638 )
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* move files (#3605 )
* move files
* commit the rest of the files
* fix lockfile
* fix workflow
* fix type errors
* fix tests
* only run ci when certain files change
* run correct test command in ci
* version
* fix pypi script
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* Fix windows flake (#3650 )
* fix windows flake
* format backend
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* 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>
* Copy everything in website Dockerfile, fix build issues (#3659 )
* dockerfile
* copy everything from repo
* correct dir
* changelog
* Correct the documentation of `gr.File` component (#3660 )
This closes #3658 .
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Nit in ValueError (#3669 )
* Nit in ValueError
* CHANGELOG
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Load upstream theme (#3641 )
* theme loading
* upstream theme
* version
* format themes
* fixes
* tests
* one more test
* fix test
* address review
* Add job for python client ci (#3674 )
* Add job + lint
* Fix path
* Fix path
* Fix path
* Checkout
* Add test requirements
* Fix syntax
* Fix test
* Lint
* Fix deps + README
* Move dependency
* Hide dropdown if in single-select mode (#3678 )
* Hide dropdown if in single-select mode
* Update changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* warning
* changelog
* ghangelog
* changelog
* object fit optional
* Add status for Python Client Jobs (#3645 )
* Add status + unit test (flaky) for now
* Install client
* Fix tests
* Lint backend + tests
* Add non-queue test
* Fix name
* Use lock instead
* Add simplify implementation + fix tests
* Restore changes to scripts
* Fix README typo
* Fix CI
* Add two concurrent test
* Fix broken spaces in docs (#3698 )
* fix examples in sentence_builder
* fix sklearn error in titanic demo
* regenerate notebooks
* changelgo
* Add download button for video (#3581 )
* Add download buttom
* Add missing imports
* CHANGELOG
* Update CHANGELOG.md
* Trigger CI
* Fix visibility
* Try to fix ci
* Fix deps
* download button change
* Lint
---------
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix outdated sharing your app guide (#3699 )
* fix embed this space screenshot
* fix use via api
* changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Add orig_name field to video outputs (#3700 )
* Add orig_name to video
* Fix test
* CHANGELOG
* Lint
* 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>
* fix dropdowns, release 3.24 (#3713 )
* changes
* changes
* Update version.txt
* New Version Docs (#3715 )
* [create-pull-request] automated change
* fix changelog
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix chatbot newline issue (#3717 )
* changes
* changes
* changes
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* New Version Docs (#3720 )
* [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 Serializer Mapping (#3722 )
* Fix mapping and test
* Bump gradio version
* Revert gradio version bump
* Fix some bugs related to Python client (#3721 )
* client format
* docs
* formatting
* fix tests
* fixed bug
* api endpoint changes
* fix tests
* fix tests
* formatting
* Add support for sessions [python client] (#3731 )
* client
* add state and tests
* remove session param
* node support for js client (#3692 )
* bundle js client + gen types
* changeset
* changeset
* fix bugs
* fix deps
* fix deps
* format
* fix ci
* fix types
* 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>
* Increase timeout for analytics request + remove exception print (#3647 )
* increase timeout
* merge
* Add changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* 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>
* Fix missing docstrings (new PR) (#3740 )
* Move documentation for _js into docstring, not a stray comment
* Add missing argument docstrings (and remove non-existent ones)
* Add changelog entry
* updated docstrings
* changelog
* contributors
* changelog
* formatting
* removed _js
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
* import (#3742 )
* Import Literal from typing extensions in client (#3741 )
* Fix typing extensions
* Import typing_extensions
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Access http token for ws connection (#3735 )
* Access unsecure token
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Add root_url to serializers in gradio_client (#3736 )
* Add root_url to serializers
* Add url fix
* Respect fn parameter
* Fix docstring
* Add other test
* Pass to method
* CI tweaks (#3752 )
* Adds a pypi release action for the gradio python client (#3743 )
* release action
* fixes
* name
* Update version.txt
* Update version.txt
* update
* fixes
* version
* rename
* action
* fix token
* custom dir
* fixes
* change password
* revert back to token
* scripts
* remove twine
* Get Intermediate Results from Python Client (#3694 )
* Add status + unit test (flaky) for now
* Install client
* Fix tests
* Lint backend + tests
* Add non-queue test
* Fix name
* Use lock instead
* Add simplify implementation + fix tests
* Restore changes to scripts
* Fix README typo
* Fix CI
* Add intermediate results to python client
* Type check
* Typecheck again
* Catch exception:
* Thinking
* Dont read generator from config
* add no queue test
* Remove unused method
* Fix types
* Remove breakpoint
* Fix code
* Fix test
* Fix tests
* Unpack list
* Add docstring
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes (#3760 )
* Make Client Jobs Iterable (#3762 )
* Add iterator
* Break if done
* Add test for early termination
* changelog
* notebooks
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: space-nuko <24979496+space-nuko@users.noreply.github.com>
Co-authored-by: Luo Peng <luopeng.he@gmail.com>
Co-authored-by: aliabid94 <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: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: Dan Sully <dan+github@sully.org>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-04-06 09:38:25 -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
1981c010c6
Access http token for ws connection ( #3735 )
...
* Access unsecure token
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-04 06:57:44 -07:00
Abubakar Abid
f50d6043db
Fix missing docstrings (new PR) ( #3740 )
...
* Move documentation for _js into docstring, not a stray comment
* Add missing argument docstrings (and remove non-existent ones)
* Add changelog entry
* updated docstrings
* changelog
* contributors
* changelog
* formatting
* removed _js
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-04-03 16:44:10 -07: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
Dawood Khan
96ef802fbd
Increase timeout for analytics request + remove exception print ( #3647 )
...
* increase timeout
* merge
* Add changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-03 13:53:58 -04: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
github-actions[bot]
13682c7bbc
New Version Docs ( #3715 )
...
* [create-pull-request] automated change
* fix changelog
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-30 16:55:46 -07: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
Ali Abdalla
1229f3b001
Fix outdated sharing your app guide ( #3699 )
...
* fix embed this space screenshot
* fix use via api
* changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-29 19:49:40 -04:00
Freddy Boulton
03a11fcd3c
Add download button for video ( #3581 )
...
* Add download buttom
* Add missing imports
* CHANGELOG
* Update CHANGELOG.md
* Trigger CI
* Fix visibility
* Try to fix ci
* Fix deps
* download button change
* Lint
---------
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-29 19:30:00 -04:00
Ali Abdalla
3aa189c678
Fix broken spaces in docs ( #3698 )
...
* fix examples in sentence_builder
* fix sklearn error in titanic demo
* regenerate notebooks
* changelgo
2023-03-29 16:03:22 -07:00
space-nuko
cbb84927a7
Only give same values .selected class in gr.Dropdown ( #3644 )
...
* Only give same values .selected class in gr.Dropdown
* Update changelog
* Requested changes
* Format
* Update changelog
* isort
* Update js/form/src/DropdownOptions.svelte
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-03-29 23:10:43 +01:00
space-nuko
2f160e2b90
Only wrap single JS return value if not already an array ( #3594 )
...
* Only wrap single JS return value if not already an array
* Update CHANGELOG
* pin
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-29 14:40:03 -07: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
space-nuko
61b9a58175
Hide dropdown if in single-select mode ( #3678 )
...
* Hide dropdown if in single-select mode
* Update changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-28 19:21:51 -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
Omar Sanseviero
a46b1806bb
Nit in ValueError ( #3669 )
...
* Nit in ValueError
* CHANGELOG
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-28 13:23:15 -04:00
Luo Peng
becada8795
Correct the documentation of gr.File
component ( #3660 )
...
This closes #3658 .
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-28 01:54:38 -07:00
Ali Abdalla
0df03a051f
Copy everything in website Dockerfile, fix build issues ( #3659 )
...
* dockerfile
* copy everything from repo
* correct dir
* changelog
2023-03-28 00:59:39 -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
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
Dawood Khan
1aa2317a5f
Fixes chatbot autoscroll + Textbox lines > 20 issue ( #3637 )
...
* fixes
* changelog
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 08:24:33 -07:00
Ali Abdalla
99fc2dd30f
fix issue with missing version ( #3632 )
...
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-27 11:04:36 -04:00
pngwn
0d9a08bf64
ensure css loads before mounting app ( #3573 )
...
* ensure css loads before mounting app
* changelog
* fix tests
* change?
* changelog
2023-03-27 15:52:07 +01:00
Omar Sanseviero
cecd5a2526
Add docs for HF Json saver ( #3604 )
...
* Add docs for flagging
* Fix params
* CHANGELOG
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-27 10:40:07 -04:00
Abubakar Abid
c9b8a0c484
A few small fixes to docs / demos ( #3611 )
...
* fixes
* remove binaries
* doc
* changelog
* typing
* run on windows
* cancels
* added clarifications
2023-03-24 16:28:38 -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
Freddy Boulton
9d3f58b898
Translate "or" for i18n ( #3599 )
...
* Translate or for i18n
* CHANGELOG
2023-03-24 11:02:05 -04:00
Freddy Boulton
f2fb69ec29
Trigger event when Slider number input is released ( #3589 )
...
* Add event
* Add unit test
* CHANGELOG
2023-03-23 17:59:56 -04: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
Freddy Boulton
7140903dd6
Fix darkmode text color for altair plots ( #3555 )
...
* dont apply formatting for non-native plots
* CHANGELOG
* Remove unused diff
2023-03-21 19:32:33 -04:00
Ali Abdalla
053504a691
Remove extra $demo from theme guide ( #3563 )
...
* remove extra
* changelog
2023-03-21 12:53:47 -07:00
Ali Abdalla
ab95f0551e
Mobile responsive iframes in themes guide ( #3562 )
...
* make demos mobile responsive
* changelog
2023-03-21 11:52:34 -07:00
Abubakar Abid
6c8aeed58f
Theme guide fixes ( #3561 )
...
* fixes
* changelog
* changelog
* changelog
* fix
2023-03-21 10:44:25 -07: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
dbd4f755fe
Fixes theme guide & releases gradio==3.23.0
( #3554 )
...
* some updates to the guide theme
* version release
* changelog
* changelog
* update guides to use interface
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-20 23:20:09 -07:00
aliabid94
ea54486350
Dropdown issues ( #3549 )
...
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-20 22:57:49 -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
aliabid94
ce20f1ba20
fix login ( #3529 )
...
* fixes
* changes
* changes
2023-03-20 21:59:19 -07: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
github-actions[bot]
27be008d58
New Version Docs ( #3509 )
...
* [create-pull-request] automated change
* trigger rerelease
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 17:54:22 -07:00
Abubakar Abid
6c2279d52f
version 3.22.1 ( #3508 )
2023-03-18 17:41:12 -07:00
aliabid94
a56b7de3c6
Theme label bar fix ( #3507 )
...
* 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
* restore_label_stat_bats
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 17:30:52 -07:00
github-actions[bot]
8e59eb9f06
New Version Docs ( #3505 )
...
* [create-pull-request] automated change
* trigger refresh
---------
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 13:55:31 -07:00
Abubakar Abid
5249bdd753
Release v3.22.0 ( #3489 )
...
* release 3.22.0
* Add type hint
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-18 13:24:11 -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
Abubakar Abid
df7dffca88
Rename theme guide ( #3500 )
...
* rename guie
* rename guide
* update link in changelog
2023-03-17 18:05:04 -07:00
aliabid94
5089fff3a6
More theme updates ( #3497 )
...
* 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
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-17 17:20:55 -07:00
Abubakar Abid
de3254fd08
Theme+release ( #3494 )
...
* 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
* save file
* update changelog
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-17 07:41:53 -07:00
Freddy Boulton
79a369cc68
Fix loading css and api when mounted in subpath ( #3482 )
...
* Implementation
* Lint + CHANGELOG
* Remove log + / typo
* Fix embedding
* Minor fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-16 17:33:40 -04: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
Abubakar Abid
eb101c428f
Adds copy button to textbox via .style()
( #3452 )
...
* add copy to textbox
* changelog
* formatting, docstring
* changes
* formatting
* demo
* cleanup
* copy button
2023-03-15 16:45:45 -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
Abubakar Abid
3d0ab76532
Pin pyright ( #3475 )
...
* changelog
* changelog
* changelog
2023-03-15 09:53:48 -07:00
Abubakar Abid
318e90c0ed
Fix File.upload()
event ( #3462 )
...
* fix .upload event
* changelog
* cleanup
2023-03-15 07:22:34 -07:00
aliabid94
814e928f05
Fix primary bg button color ( #3468 )
...
* changes
* changes
2023-03-14 21:12:00 -07:00
Ali Abdalla
302982c71e
Document gr.Error ( #3465 )
...
* add docstrings and document error
* fix link in guide
* changelog
* lint
2023-03-14 20:00:26 -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
github-actions[bot]
d2a0bd02f5
New Version Docs ( #3457 )
...
* [create-pull-request] automated change
* trigger
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-13 18:29:42 -07:00
Abubakar Abid
82b481a7c7
V3.21.0 ( #3455 )
...
* version 3.21
* version
2023-03-13 18:08:49 -07:00
aliabid94
3d772b6aea
Fix Mic display ( #3456 )
...
* changes
* fix
2023-03-13 18:02:53 -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
c4734fff8b
Makes a few fixes to the JSON component ( #3451 )
...
* small fixes
* changelog, formatting
* static checks
2023-03-13 10:29:26 -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
Freddy Boulton
97488412ec
Fix event handler documentation ( #3434 )
...
* Document callable method
* Add comment
* CHANGELOG
2023-03-10 12:36:08 -05:00
aliabid94
c22f84343b
Event listener cleanup ( #3420 )
...
* changes
* changes
* trim out then
* chagnes
* CHANGES
* changes
* changes
* changes
* restore ui
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/documentation.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changres
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-09 12:58:41 -08:00
Ali Abdalla
19f9f06d54
Document Blocks methods ( #3427 )
...
* document launch, queue and integrate in blocks
* seperate example usages for interface vs blocks methods
* changelog
* fix lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-09 12:10:17 -08:00
Ikko Eltociear Ashimine
92e576f8eb
Fix link ( #3417 )
...
* Fix link
* changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-09 08:29:50 -08:00
Freddy Boulton
909b94f452
Fix BlockContext import bug in utils.py ( #3424 )
...
* Fix import bug
* CHANGELOG
2023-03-09 10:59:10 -05: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
Ali Abdalla
f86b6445f8
Fix css issue with spaces logo ( #3422 )
...
* override css
* changelog
2023-03-08 15:37:56 -08: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
Ali Abdalla
40b5ab8c29
Remove codecov from the repo ( #3415 )
2023-03-07 18:04:58 -08:00
Abubakar Abid
952da337a6
Document web component parameters ( #3407 )
...
* document embed params
* changelog
* iframe
* fixed review changes
2023-03-07 14:37:06 -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
Abubakar Abid
2fd9b55b87
Added a section on security ( #3408 )
...
* security
* added section on security
* security
* changes from review
2023-03-07 14:21:23 -08:00
Ali Abdalla
a5e3be71ba
Fix markdown embedded component in docs ( #3410 )
...
* revert to old md component demo
* changelog
2023-03-07 14:15:03 -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
Ali Abdalla
d906dedf97
fix bad codeblock ( #3401 )
2023-03-06 15:46:16 -08:00
Uanu
e28f3b25b1
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>
2023-03-06 15:22:48 -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
github-actions[bot]
0e0d1c181d
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>
2023-03-06 12:07:39 -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
Abubakar Abid
9fb3c2236d
Release 3.20.1 ( #3390 )
...
* release 3.20.1
* changelog
2023-03-06 11:05:28 -08:00
Dawood Khan
a2076441e2
Chatbot height kwarg ( #3369 )
...
* height
* height
* changelog
* fixes
* merge
* Fix File updating (#3375 )
* Fix
* Remove line
* Add unit test
* CHANGELOG
* Remove comment
* fixes
* Release 3.20.0 (#3374 )
* release-3.20.0
* update changelog
* 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>
* notebook
* changelog
* changelog
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@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: aliabd <ali.si3luwa@gmail.com>
2023-03-06 10:12:39 -08:00
pngwn
fc39cbdd9b
ensure image is always drawn ( #3386 )
...
* ensure image is always drawn
* fix demo
* notebooks
* clean
2023-03-06 16:04:42 +00:00
Abubakar Abid
dea75bdc27
Release 3.20.0 ( #3374 )
...
* release-3.20.0
* update changelog
2023-03-03 18:22:34 -08:00
aliabid94
02fb8f5a1f
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>
2023-03-03 18:17:48 -08:00
Freddy Boulton
99945c951b
Fix File updating ( #3375 )
...
* Fix
* Remove line
* Add unit test
* CHANGELOG
* Remove comment
2023-03-03 15:14:56 -05:00
Jialei
be4ca360ca
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>
2023-03-03 14:37:05 -05:00
pngwn
6c9c41b15d
support domains ( #3367 )
...
* support domains
* changelog
* format
* handle invalid source/host/space
* format
* version
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-03 16:52:38 +00:00
Freddy Boulton
d8023d455f
Add event that's triggered when slider is released ( #3353 )
...
* Add code
* Add unit test
* CHANGELOG + notebook format
* Clean up
* Remove comment
2023-03-02 21:29:49 -05:00
pngwn
5c01a029ce
resize image when shape is passed ( #3351 )
...
* resize image when shape is passed
* changelog
* cleanup
* handle square images + refactor
* leftover
2023-03-01 23:47:15 +00:00
Abubakar Abid
b80fb2729a
Supabase Guide ( #3275 )
...
* supabase guide
* changelog
* changes
* guide
* schema'
* finish
* added images
* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md
Co-authored-by: pngwn <hello@pngwn.io>
* changes
* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md
Co-authored-by: pngwn <hello@pngwn.io>
* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md
Co-authored-by: pngwn <hello@pngwn.io>
* changes
* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md
Co-authored-by: pngwn <hello@pngwn.io>
* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md
Co-authored-by: pngwn <hello@pngwn.io>
* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md
Co-authored-by: pngwn <hello@pngwn.io>
* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md
Co-authored-by: pngwn <hello@pngwn.io>
* add demo
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-03-01 13:20:24 -08:00
Abubakar Abid
cd99857e0f
Google Analytics fix ( #3349 )
...
* ga analytics fix
* changelog
* revert
* tests
* revert
* revert
2023-03-01 11:26:26 -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
pngwn
ce0bbdab89
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>
2023-02-28 18:18:33 +00:00
Freddy Boulton
9fbe7a06fb
Add option to display gallery in preview mode ( #3345 )
...
* Add code + api
* CHANGELOG
2023-02-28 12:41:24 -05:00
Freddy Boulton
ba6e4accb6
Apply height in Gallery.style ( #3343 )
...
* Apply height
* Remove log
* Add CHANGELOG
* Remove unused let
* Add missing type hint
2023-02-28 12:13:49 -05:00
pngwn
d39c62a7f4
fix markdown css ( #3341 )
...
* fix markdown css
* changelog
* cleanup
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-28 10:26:00 +00:00
Ali Abdalla
9682bc82db
Gradio Status Page ( #3331 )
...
* add status page to error message
* changelog
* link to status page on website
* move link to the right
2023-02-27 20:47:04 -08:00
Freddy Boulton
fc5e9a2156
Dont cancel non-flaky tests if flaky tests fail ( #3344 )
...
* Dont cancel other runs if flaky runs fail
* Fix quote
* CHANGELOG
* Revert deliberate test failure
2023-02-27 17:59:36 -05:00
pngwn
126694b70d
fix flex layout ( #3336 )
...
* fix flex layout
* changelog
2023-02-27 17:55:53 +00: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
Ali Abdalla
e54042b43b
API Docs Fixes ( #3287 )
...
* fix audio api docs
* fix type and desc for every component
* fix indentation
* fix chatbot example
* fix checkbox example
* fix types in run and code snippets
* fix dataframe dataset file video
* some syntax highlighting
* changelog
* formatting
* type fixes
* clarify wording for audio, video, file
* better indentation
* show actual url in description
* add copy buttons
* formatting and types
2023-02-24 13:13:13 -08:00
Ali Abdalla
be4986de8a
Fix change event listed twice in image docs ( #3318 )
...
* fix document listing change twice
* Changelog
2023-02-24 13:00:52 -08: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
Freddy Boulton
ed33e8f1a8
Add download button for output images ( #3297 )
...
* Add download button
* CHANGELOG
* Add gif to changelog
* newline
2023-02-23 15:56:37 -05:00
pngwn
4e772fda24
new logo, remove initial_height after loading ( #3292 )
...
* new logo, remove initial_height after loading
* tweak
* changelog
* cleanup
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-23 20:07:27 +00:00
Freddy Boulton
7b2f9cf2ea
3290 fix dropdown infinite loop ( #3295 )
...
* Fix infinite loop
* lint
* CHANGELOG
2023-02-23 10:55:43 -05:00
pngwn
372a3cca2f
3248 image ( #3277 )
2023-02-23 08:46:44 +00:00
aliabid94
9c811ed892
Add info= parameter to form type inputs to provide more context for users ( #3291 )
...
* changes
* changes
* changes
* changes
* changes
* changes
2023-02-22 15:16:15 -08: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
Abubakar Abid
06c4cd705f
Some fixes to disabled buttons ( #3288 )
...
* Fixes to button disable
* button
* formatting
* fixes
* formatter
2023-02-22 13:23: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
Freddy Boulton
fa094a03e2
Fix matplotlib image size ( #3274 )
...
* Fix matplotlib css
* CHANGELOG
* Undo lockfile
2023-02-21 16:34:51 -05:00
Abubakar Abid
f36445522f
Adding a script to benchmark the queue ( #3272 )
...
* added benchmark queue script
* changelg
* fix instructions
2023-02-21 15:08:06 -06:00
Abubakar Abid
e513f06e5e
LaTeX height fix ( #3258 )
...
* latex height fix
* changelog
* formatting
* em
* em
2023-02-21 14:12:03 -06:00
Abubakar Abid
55162e5f94
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
2023-02-21 13:11:46 -06:00
pngwn
847610ccc0
fix webcam mirroring ( #3245 )
...
* fix webcam
* changelog
* fix changelog
* fix changelog
* fix changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-21 13:43:57 +00:00
fienestar
e536227615
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>
2023-02-21 11:50:44 +00: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
Ikko Eltociear Ashimine
170ad3d785
Fix typo in components.py ( #3235 )
...
* Fix typo in components.py
covert -> convert
* Update CHANGELOG.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-20 12:29:12 -06:00
aliabid94
e6d6ea1452
Fix Gradio 3.19 UI breaks ( #3242 )
...
* changes
* changes
* changes
2023-02-19 16:14:44 -08:00
Abubakar Abid
ca75ae8bd5
release 3.19.0 ( #3226 )
...
* release 3.19.0
* changelog
2023-02-19 08:30:33 -08:00
pngwn
4fd2ae081c
3229 styling ( #3233 )
...
* ensure latex css is applied
* remove z-index on error status
* changelog
* formatting
* more styling fixes + adjust error message for non space
* simplify test
* simplify test
* update notebook
* pinning mdit-py-plugins
* missed a thing
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-19 15:16:08 +00:00
Abubakar Abid
56245276e7
Added diffusers demo with batching & some misc improvements to doc ( #3224 )
...
* added diffusers demo
* guide updates
* changelog
* update demo
* notebook
2023-02-17 18:53:21 -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
9b2119f297
Fix auth when connecting via HTTP ( #3223 )
...
* Fix + test
* Remove print statements + fix import for 3.7
* CHANGELOG
* Remove more print statements
* Add 60 second timeout for uploading data
* Fix test
* Add unsecure token
* Undo diff
* Add CHANGELOG
* Fix on main
* remove __gradio_loader__
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-17 18:01:42 -05: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
Abubakar Abid
a2b80ca5c6
FRP version fix ( #3221 )
...
* frp version fix
* changelog
* formatting
2023-02-17 14:47:39 -06:00
pngwn
1e99873fa5
1957 embed pretty ( #3205 )
...
* changes
* changes
* fix all things
* fix root
* fix ids
* tweaks
* twaks
* handle whitespace
* tweaks and fix checks
* revert demo change
* formatting
* formatting
* regen notebooks
* add eager attribute
* tweaks + formatting
* changelog
* fix
* fix
* fix css stuff
* tweak timeout when pollig
* format
* tweak
* format
2023-02-17 18:51:00 +00:00
Dawood Khan
9c08bb92c5
Add ability add a single message from the bot/user side ( #3165 )
...
* chatbot fices
* chagnelog
* remove starts_with
* more fixes
* added chatbot multimodal demo
* fix height
* height
* update demo
* changelog
* format
* format
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-17 13:02:41 -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
aliabid94
74f75f004a
Fix Table entry for Pinyin ( #3206 )
...
* changes
* changes
2023-02-15 13:13:55 -08: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
Freddy Boulton
4307d7e809
Dispatch change event for "Clear All" with multiselect ( #3195 )
...
* Dispatch change
* CHANGELOG
* Fix changelog
2023-02-14 14:50:27 -05:00
Freddy Boulton
3d9226a8e6
Fix loading files from embedded spaces ( #3177 )
...
* Use root
* CHANGELOG
2023-02-14 13:31:43 -05: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
Omar Sanseviero
dd5d7630be
Add a section on how to run a Gradio app locally ( #3170 )
...
* Update 01_quickstart.md
* Update CHANGELOG.md
* Update 01_quickstart.md
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-13 13:13:15 -05:00
Maxime Vidal
a4db6edd42
Fixed typos in function descriptions ( #3168 )
...
* Fixed typos in function descriptions
* updated changelog.md
2023-02-10 13:26:05 -05: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
Ali Abdalla
1bc817a600
Sort components in docs by alphabetic order ( #3152 )
...
* alhabetic ordering of components
* changelog
2023-02-08 19:07:23 -08:00
Ali Abdalla
559de6eee9
Fix demos page css and add close demos button ( #3151 )
...
* close button for demo window
* fix demos page css, replace stable diffusion
* changelog
* demo notebook
* add scrollbar for demo window
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-08 18:54:48 -08:00
Ali Abdalla
190687e716
Changes to W&B guide ( #3153 )
...
* changes to guide
* changlog
* changlog fix credit to scott
2023-02-08 13:29:37 -08:00
Abubakar Abid
c9282c4c0a
version 3.18.0 ( #3141 )
...
* version 3.18.0
* changelog
2023-02-07 13:14:22 -08:00
Freddy Boulton
71f6117f6f
Fix darkmode toggle on native plots ( #3146 )
...
* Fix darkmode
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-07 15:55:31 -05:00
Dawood Khan
921ff1c47a
A few dropdown fixes ( #3145 )
...
* dropdown fixes
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-07 12:48:31 -08:00
Ali Abdalla
0773205fdb
Better docs navigation on mobile ( #3112 )
...
* fix responsiveness of embedded lineplot
* regenerate notebook
* nav button and sidebar
* better styling
* fix broken quickstart link
* fix styling on close button
* styling
* undo assets change
* changelog
* refactor code
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-07 12:42:57 -08:00
Freddy Boulton
1306ab3865
Fix examples pagination ( #3144 )
...
* Fix font color and layout
* CHANGELOG
2023-02-07 15:30:30 -05:00
Dawood Khan
3d3ec119e8
Fixes interactive output image cannot be set when in edit mode ( #3135 )
...
* cropper fix
* Update CHANGELOG.md
2023-02-07 12:49:50 -05: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
Abubakar Abid
f062c7e1fd
Adds a demo / information about how to create demos with variable #s of outputs ( #3127 )
...
* added demo
* added to guide
* changelog
* notebooks
* update demo
2023-02-06 11:38:54 -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
Freddy Boulton
ec2b68f554
Update docs on equal_height param for Rows ( #3125 )
...
* Update docs
* CHANGELOG
2023-02-06 14:21:59 -05:00
Freddy Boulton
50d24a854e
Emit warning when using an interface in reload mode ( #3126 )
...
* Add warning
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-06 10:00:35 -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
pngwn
a23bc03aeb
ensure video resets state correctly when a new src is loaded ( #3117 )
...
* improve is playing, remove console error
* add video demo to all_demos
* fix demo
* fix bug
* changelog + notebooks
* cleanup
* fix choppy video resizing
* reduce flashing due to prediction request, video loading + rendering
* fix notebooks
* changelog
2023-02-03 17:36:31 +00:00
Dawood Khan
63d5efcfc4
Chatbot Guide Update ( #3023 )
...
* chatbot guide
* guide update
* changelog
* demo updates
* demo fix
* notebook fix
* format
* guide fixes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-03 12:13:15 -05:00
Freddy Boulton
da4c46c33a
Change image url for fake diffusion demos ( #3120 )
...
* Change image url
:
* Fix demos
* CHANGELOG
* Use s3 link
2023-02-03 11:21:41 -05: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
Abubakar Abid
431a987d61
Fixes URL resolution on Windows ( #3108 )
...
* windows urls
* changelog
* formatting
2023-02-02 08:47:17 -08:00
Dhruv Nair
04484621c2
Add guide for Comet and Gradio ( #3058 )
...
* initial commit for comet guide
* Add video clips
* fix typos and links
* add edit panel gif
* rename markdown file for guide
* update video tags
* update changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-02 11:17:58 -05:00
Abubakar Abid
f3b3736596
Guide on 4 kinds of interfaces ( #3003 )
...
* guide on 4 kinds of interfaces
* interfaces
* changelog
* added demo
* added demos and edited markdown
Added standard and unified interface demos, along with updates to the markdown.
* updated notebooks
Updated notebooks with markdown changes and bug fixes
* interfaces
* moved location of guide
* ranemd
* renamed
* removed demo
* updated blocks code to interfaces
* upload requirements.txt file
* Delete run.ipynb to add another notebook file
upload and replace
* Add run.ipynb via upload option
Notebook for unified interface demo
* fixed typo
* fixes
* update demos
* notebooks
---------
Co-authored-by: yuvraj sharma <48665385+yvrjsharma@users.noreply.github.com>
2023-02-02 07:58:29 -08:00
Abubakar Abid
1aec8e0a96
release v3.17.1 ( #3115 )
2023-02-02 04:45:27 -08:00
Greysuki
cd7370d9eb
Final? ( #3098 )
...
Co-authored-by: pngwn <hello@pngwn.io>
2023-02-02 12:16:38 +00:00
aliabid94
f434058dd4
Fix gallery grid ( #3107 )
...
* changes
* changes
* changes
* generate notebook
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-02 03:47:03 -08:00
Freddy Boulton
792289cdf7
Fix example gallery mode ( #3090 )
...
* Fix example gallery mode
* CHANGELOG
2023-02-01 12:09:39 -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
Christopher Akiki
4d94d4b3a5
[Minor] Correct link ( #3109 )
...
* Correct link
* Update CHANGELOG.md
2023-02-01 11:21:16 -05:00
aliabid94
26056e5d72
Fix change event listener ( #3095 )
...
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-02-01 15:51:38 +00:00
Freddy Boulton
4aa7d8d74b
Set minimum markdown-it-py version to 2.0.0 ( #3102 )
...
* Bump requirements
* CHANGELOG
2023-01-31 16:08:39 -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
aliabid94
5264b4c6ff
Chatbot loader ( #3079 )
...
* changes
* chagnes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-30 17:09:14 -08:00
Abubakar Abid
07a8bd08de
Release version 3.17.0 ( #3074 )
...
* version 3.17.0
* changelog
2023-01-30 09:25:15 -08:00
Dawood Khan
6c8ed19ef6
Fix Sketch clearing bug ( #3047 )
...
* bug fix
* changelog
* undo fix
2023-01-30 11:24:11 -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
pngwn
9599772fd6
fix css scoping ( #3059 )
2023-01-28 09:47:14 +00:00
pngwn
669ee42c8f
fix space embeds using src
attribute ( #3065 )
...
* change ports in dev mode
* changelog
* correctly detect space embeds
* changelog
* formatting
2023-01-27 14:39:36 +00:00
Greysuki
243b400b53
fix-tabs ( #3055 )
...
* fix-tabs
* Reformat changelog
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-01-27 06:35:19 -05:00
Freddy Boulton
4e3626bbeb
Preserve Gallery selected image through updates ( #3061 )
...
* Fix bug
* CHANGELOG
2023-01-27 05:42:35 -05:00
Freddy Boulton
7fc3e750b0
Hide upload component ( #3053 )
...
* Hide upload component
* CHANGELOG
* Rename class
2023-01-25 16:35:44 -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
Abubakar Abid
c85572192e
Updated series demo ( #3051 )
...
* updated demo
* notebook
* changelog
2023-01-25 14:21:37 +05:00
Ali Abdalla
02c7bfe1ed
Adding missing embedded components on docs ( #3027 )
...
* add embedded component for dataset
* add embedded component for examples
* add embedded component for progress
* remove make_waveform
* add embedded component for uploadbutton
* remove footer on lineplot embedded component
* remove broken image from gallery
* add embedded component for interpretation
* generated notebooks
* changelog
* change example component demo to images
* remove natgeo img in gallery demo
* regenerate notebooks
2023-01-24 13:15:06 -08:00
pngwn
2667eb65b1
fix form focus styles ( #3042 )
...
* fix form focus styles
* changelog
2023-01-24 19:51:51 +00: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
Freddy Boulton
acbc695ce1
Trigger events on programmatic change for Dropdown and Checkbox ( #3045 )
...
* Trigger events on change
* CHANGELOG
* Remove logging
2023-01-23 19:41:33 +01:00
Dawood Khan
35d4243854
Add download button to model3d output ( #3014 )
...
* download button
* update model3d demo
* changelog
* Update CHANGELOG.md
* Update CHANGELOG.md
* add download button to filepreview
* remove icon from file comp
* notebook
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-23 10:14:29 -05:00
petrov826
c2b080ece3
fix chatbot example code ( #3039 )
...
* fix chatbot example code
explictly cast random.randint(1, 10) to string
* updated CHANGELOG.md and demo notebook
2023-01-21 11:00:15 +01: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
aliabid94
5bd42feb8c
Frontend fixes ( #3026 )
...
* fixes
* changes
* change
* changes
2023-01-20 13:24:24 -08:00
Abubakar Abid
af320cf25e
Adds a GitHub action to detect if any files > 5 MB are present in the PR ( #3013 )
...
* Create large-files.yml
* Update CHANGELOG.md
* Update large-files.yml
* Update large-files.yml
* Update large-files.yml
* Update large-files.yml
* Update large-files.yml
* Update large-files.yml
2023-01-19 07:53:14 -08:00
Ali Abdalla
b0540d1a7b
Fix forwarding for guides after SEO renaming ( #3017 )
...
* remove .md from forwarding rules
* changelog
2023-01-18 16:59:42 -08:00
Ali Abdalla
2dec8a181f
Switch all pages on the website to use latest stable gradio ( #3016 )
...
* switch all pages to use latest stable
* changelog
2023-01-18 16:50:05 -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
Ali Abdalla
625ccae34c
SEO improvements to guides ( #2915 )
...
* replace underscores with dashes and redirect old urls
* tldrs, listicles, and in-site cross-linking
* add canonical tags to all pages
* changelog
* shorten into
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-18 08:44:56 -08:00
Freddy Boulton
db54b7b76a
Use gr.lineplot for kinematics demo ( #2998 )
...
* Use lineplot for kinematics
* Changelog
2023-01-18 05:21:34 -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
Abubakar Abid
e9ff8f5e4b
Correctly add uploaded files to temp set ( #3005 )
...
* file-temp
* changelog
2023-01-17 12:55:42 -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
Abubakar Abid
43f0bedf52
replace x-png with png ( #3002 )
...
* replace x-png with png
* changelog
2023-01-17 09:59:51 -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
Abubakar Abid
b1b6841b7e
version ( #2988 )
2023-01-15 21:58:20 -08: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
3f2074855d
Fix bug downloading files with long names ( #2929 )
...
* Fix bug
* Add changelog
* move to current release section
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 18:58:14 -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
Alina Rogalska
2e54471610
Fix cached examples encoding ( #2974 )
...
* Fix encoding when loading cached examples
* Format backend
* Add changes to CHANGELOG
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 00:16:46 -08:00
Tasha Upchurch
94c9512df9
the original demo would fail after switching to the 3rd tab once, by … ( #2971 )
...
* the original demo would fail after switching to the 3rd tab once, by not returning to it again when directed to.
it appears that somewhere in tabs, that selected is not being updated when a tabitem is selected.
* Changelog + notebooks:
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-01-13 13:41:53 -05:00
Abubakar Abid
6a3c8d3fdf
Bring back change event for Dropdown ( #2954 )
...
* bring back change
* changelog
* changelog
* changelog
2023-01-08 13:09:40 +01:00