pngwn
c3dadaebbe
fix cancels ( #4225 )
...
* fix cancels
* changelog
* refactor to make it work
2023-05-16 22:37:28 +01:00
aliabid94
96b38fda07
Input listener ( #4157 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* chnages
* fix
* changes
* changes
* merge
* changes
* restore
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-15 21:36:57 -04:00
Tom Aarsen
02bd90d7c1
[Docs] Resolve numerous typos ( #4170 )
...
* Resolve numerous typos
* Delete test.py
* Run generate_notebooks
* notebooks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 15:20:41 -05:00
Abubakar Abid
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
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
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
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
Abubakar Abid
7a04ebe7fd
Fix some documentation-related issues in Guides ( #3903 )
...
* client doc fixes
* simplify demo
* added guides
* chatbot guide
* notebooks
* format
2023-04-19 14:38:11 -04: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
aliabid94
1b4925712b
HighlightedImage component ( #3836 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* rename
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* change
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-14 13:11:27 -07:00
Abubakar Abid
d3b7f73bcf
Update view api page to use Python client ( #3765 )
...
* Update view api page
* simplify
* update
* changes
* changes
* updated info
* formatting
* changes
* fixes
* save
* moved
* remove test input
* tweaks
* formatting
* add raw
* serialize
* fixes
* refactor
* fixes
* fixes
* Fetch api
* lower case
* view api
* fix tests
* format
* rough design
* readme
* api docs
* examples
* format
* formatting
* format
* version
* client changes
* formatting
* update client
* more example inputs
* api docs fixes
* remove notebook
* fix demo
* demo notebook
* styling on code snippet
* formatting
* fix audio, model3d
* format
* fix tests
* version
* cleanup
* format
* format
* format
* fixes
* version
* fix tests
* version
* format
* test
* format
* changelog
* changelog
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-13 16:20:33 -07:00
Greysuki
54af6ae290
Adding subtitles to gr.Video
( #3673 )
...
* v2 version now accepts video and subtitle format inputs.
* remove debug log and some format issue
* Update CHANGELOG.md
* Upload components.py and regenerate demo
* fix components and add comment to function
* fix postprocess return format
* changelog
* demo change to gr.Interface type
* fix file_types
* fixes
* added video serializer
* clean up preprocess
* clean up postprocess
* formatting
* frontend
* fixed serialization
* dataclass
* fix serialize
* version
* fix tests
* version
* changelog
* typing
* version
* changelog
* version
* versin
* fix tests
* fix tests
* backend
* test
* changes
* relax test
* fix demo
* notebook
* changes
* fix
* changes
* Update gradio/components.py
* Update client/python/gradio_client/client.py
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-11 16:06:48 -07:00
aliabid94
379b6f662e
Get Image click coordinates from .select
( #3786 )
...
* changes
* changes
* fix demo notebook
* changes
* changes
* chagnes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-10 14:47:33 -07:00
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
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
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
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
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
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
6e6121a1ac
Sets up the Python gradio
client ( #3300 )
...
* placeholder
* changelog
* added to readme
* client
* implement futures
* utils
* scripts
* lint
* reorg
* scripts
* serialization
* cleanup
* fns
* serialize
* cache
* callbacks
* updates
* formatting
* packaging
* requirements
* remove changelog
* client
* access token
* formatting
* deprecate
* format backend
* client replace
* updates
* moving from utils
* remove code duplication
* rm duplicates
* simplify
* galleryserializer
* serializable
* load serializers
* fixing errors
* errors
* typing
* tests
* changelog
* lint
* fix lint
* fixing files
* formatting
* type
* fix type checking
* changelog
* changelog
* Update client/python/gradio_client/client.py
Co-authored-by: Lucain <lucainp@gmail.com>
* formatting, tests
* formatting, tests
* gr.load
* refactoring
* refactoring'
* formatting
* formatting
* tests
* tests
* fix tests
* cleanup
* added tests
* adding scripts
* formatting
* address review comments
* readme
* serialize info
* remove from changelog
* version 0.0.2 released
* lint
* type fix
* check
* type issues
* hf_token
* update hf token
* telemetry
* docs, circle dependency
* hf token
* formatting
* updates
* sort
* script
* external
* docs
* formatting
* fixes
* scripts
* requirements
* fix tests
* context
* changes
* formatting
* fixes
* format fix
---------
Co-authored-by: Lucain <lucainp@gmail.com>
2023-03-23 15:33:44 -07:00
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
Freddy Boulton
9d159be249
Add missing demos for Code and Barplot ( #3550 )
...
* Add missing demos
* Add code
* Linting
* Format notebook
* Remove extra print
* Update demo/barplot_component/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix code component formatting
* Fix barplot
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-20 19:16:18 -04:00
Abubakar Abid
d0ec3d97f2
Iframes guides and fixes theme_new_step_3\run.py
( #3506 )
...
* seafoam
* theme
* save
* Update guides/06_other-tutorials/theming-guide.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_other-tutorials/theming-guide.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_other-tutorials/theming-guide.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_other-tutorials/theming-guide.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_other-tutorials/theming-guide.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_other-tutorials/theming-guide.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/06_other-tutorials/theming-guide.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-03-18 15:19:43 -07:00
aliabid94
8114202697
Use soft theme instead of glass theme in demo ( #3503 )
...
* changes
* changes
* changes
* changes
* changes
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* undo merge break
* changes
* changes
* changes
* fix
* theme_to_soft
* changes
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 13:07:23 -07:00
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
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
Radamés Ajna
226e87cd54
implement missing methods handle nested dict ( #3459 )
...
* implement missing methods handle nested dict
test for get 'user-agent'
extra example for gr.Requests
* missing notebook example
* add missing attributes, keys, values, items
* update changelog
* fix changelog
2023-03-14 15:15:12 -07:00
aliabid94
95bf08b2e2
Adding the .select event listener ( #3399 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changs
* changes
* changes
* changes
* changes
* changes
* changes
* preview
* fix notebook
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Add type hints (#3403 )
Co-authored-by: aliabid94 <aabid94@gmail.com>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* doc update
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-13 17:12:41 -07:00
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
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
pngwn
fddf376784
JS client take 2 ( #3388 )
...
* start
* change api
* integrate into gradio
* log
* try this
* format
* changes
* format
* fix css
* fix file
2023-03-07 16:36:25 +00: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
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
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
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
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
Dawood Khan
f36211050c
Dropdown Component Updates ( #3211 )
...
* dropdown
* more dropdown updates
* dropdown styling + option visibility
* changelog
* notebook
* fix test
* Allow more image formats (#3225 )
* add wildcard to image input
* simplify mime types
* changelog
* regen noteboks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
* fix webcam mirroring (#3245 )
* fix webcam
* changelog
* fix changelog
* fix changelog
* fix changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Add `interactive=False` mode to `gr.Button` (#3266 )
* add interactive=False to button
* add interactive=True by default
* changelog
* fix frontend
* fix backend test
* formatting
* review changes
* LaTeX height fix (#3258 )
* latex height fix
* changelog
* formatting
* em
* em
* accidentally added script (#3273 )
* Adding a script to benchmark the queue (#3272 )
* added benchmark queue script
* changelg
* fix instructions
* Fix matplotlib image size (#3274 )
* Fix matplotlib css
* CHANGELOG
* Undo lockfile
* Add timeouts to queue messages (#3196 )
* Fix + test
* Remove print statements + fix import for 3.7
* CHANGELOG
* Remove more print statements
* Add 60 second timeout for uploading data
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* icons
* separate options into component
* formatting
* changelog
* changelog
* fix ui tests
* formatting again...
* backend test fix
* format
* doc fixes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: fienestar <fienestar@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-23 16:32:18 -05:00
pngwn
372a3cca2f
3248 image ( #3277 )
2023-02-23 08:46:44 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
aliabid94
5bd42feb8c
Frontend fixes ( #3026 )
...
* fixes
* changes
* change
* changes
2023-01-20 13:24:24 -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
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
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
Dawood Khan
9fff1e0fe8
Enable multi-select on gradio.Dropdown ( #2871 )
...
* multiselect dropdown
* fixes
* more fixes
* changes
* changelog
* formatting
* format notebooks
* type fixes
* notebok fix
* remove console log
* notebook fix
* type fix
* Revert "format notebooks"
This reverts commit fb8762ecff
.
* notebook fix
* bug fixes
* Update CHANGELOG.md
* Excluding untracked files from demo notebook check action (#2897 )
* excluding untracked files from wget
* changelog
* fix setting default values
* typeability and arrow key support
* python types
* reformat
* another type check
* minor fixes + interactive false fix
* change remove token styling
* separate multiselect into separate file
* style fixes
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* some more style fixes
* small bug fix
* addressed pr comments
* fix active color highlighting
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-04 19:13:46 -05:00
Dawood Khan
ad42e80dca
Upload filetypes of specified extensions ( #2901 )
...
* file extensions
* Update CHANGELOG.md
* update notebook
* formatting
* notebook fix
* fixes
2023-01-04 12:34:46 -05:00
aliabid94
58b1a074ba
Add Progress Bar component ( #2750 )
...
* changes
* version
* changes
* fixes
* changes
* changes
* changes
* changes
* chagnes
* chagnes
* fix
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* version update
* Commit from GitHub Actions (Upload Python Package)
* changes
* changes
* changes
* fix
* changes
* changes
* changes
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* changes
* changes
* changes
* changes
* change
* changes
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/routes.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* change
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: GH ACTIONS <aliabid94@users.noreply.github.com>
2022-12-30 11:45:54 -08:00
Abubakar Abid
5310782ed9
Added typing to even more files ( #2900 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* attempt fix
* serialize fix
* formatting
* all demos queue
* addressed review comments
* formatting
2022-12-29 15:18:19 -05:00
Ali Abdalla
d934828a7c
Excluding untracked files from demo notebook check action ( #2897 )
...
* excluding untracked files from wget
* changelog
2022-12-28 16:40:03 +04:00
Freddy Boulton
e7cca92831
Fix blocks_style demo ( #2890 )
...
* Fix blocks_style demo
* Add changelog
* Fix API + notebook
* Remove nested column
* moved highlighttext colormap to style
* Add back container
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-27 11:51:08 -05:00
Ali Abdalla
dc200af89c
Remove footers and min-height the correct way ( #2860 )
...
* fixes to readme
* add css to demos and remove footer js from html
* update changelog
* fix weird notebook
* fix weird notebook
* fix weird notebook
* fix weird notebook...
* actually fixed the problem
2022-12-21 19:01:42 +04:00
Freddy Boulton
51157d7410
Adding a LinePlot component demo to the docs ( #2868 )
...
* Add gradio demo
* Add linplot component notebook
* Link live_dashboard to LinePlot
* Fix notebooks + lint
2022-12-20 20:27:21 -05:00
Freddy Boulton
96297c0bad
LinePlot ( #2807 )
...
* First draft
* Fix tests
* Fix pdb
* Figure out stroke dash + legend position
* Add legend position
* Add back gif
* Add demo + update demo
* Format notebooks
* Changelog
* More changelog
* Undo notebooks
* Reword
* Set lower bound for altair
* Modify docstrings
* Add LinePlot image to changelog
2022-12-20 11:13:51 -05:00
Dawood Khan
714ab2cc09
Audio waveform ( #2706 )
...
* utils func
* changes
* changes
* changes
* notebook
* fix
* changes
* change
* changes
* changes
* notebook fix
* changes
* changes
* changes
* change
* fix
* revert backend changes, gr.make_waveform
* notebook
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* format fix
* changes
* changes
* revert pnpm
* change
* change
* changes
* changes
* changes
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-15 12:35:22 -06:00
Abubakar Abid
53005ab88a
Switch from SSH tunneling to FRP ( #2509 )
...
* FRP Poc (#2396 )
* FRP Poc
* Gracefully handle exceptions in thread tunneling
* comments
* Fix share error message when files are built locally (#2502 )
* fix share error message
* changelog
* formatting
* tunneling rename
* version
* formatting
* remove test
* changelog
* version
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Wauplin <lucainp@gmail.com>
* 2509
* updated url to testing.gradiodash.com
* gradiotesting
* format, version
* gradio.live
* temp fix for https
* remove unnecessary tests
* version
* updated tunnel logic
* formatting and tests
* load testing
* changes
* Make private method + generate privilege key (#2519 )
* rm load test
* frp
* formatting
* Update run.py
* Update run.py
* updated message
* share=True
* [DO NOT MERGE] Add pymux for FRP (#2747 )
* Add pymux for FRP
* Cleaning pyamux
* Cleaning pyamux + make it work
* Forgot the thread
* Reformat
* some logs to be removed afterwards
* added share to hello world
* Transform into object
* I guess it's cleaner now
* Handle 404 + Transform to object
* Fix params names
* Add debug
* windows fix
Co-authored-by: Wauplin <lucainp@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* removed share=True
* formatting
* hello world notebook
* version
* fixes
* formatting
* testing tunneling exists
* tests
* formatting
* lint
* Remove asyncio + kill proc on exit
* version
* version
* update changelog
* explicit message about reporting
Co-authored-by: Adrien <adrien@xcid.fr>
Co-authored-by: Wauplin <lucainp@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-12-14 08:10:45 -06:00
Freddy Boulton
f60053d85f
gr.ScatterPlot component ( #2764 )
...
* Try clean install
* Resolve peer dependencies?
* CHANGELOG
* Add outbreak_forcast notebook
* generate again
* CHANGELOG
* Add image to changelog
* Color palette
* Fix colors + legend
* Tooltip
* Add axis titles
* Clean up code a bit + quant scales
* Add code
* Add size, shape + rename legend title
* Fix demo
* Add update + demo
* Handle darkmode better
* Try new font
* Use sans-serif
* Add caption
* Changelog + tests
* More tests
* Address comments
* Make caption fontsize smaller and enable interactivity
* Add docstrings + add height + width
* Use normal font weight
* Make last values keyword only
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix typo
* Accept value as fn
* reword changelog a bit
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-09 10:14:07 -05:00
Freddy Boulton
bed288a509
Add support for altair plots ( #2741 )
...
* Try clean install
* Resolve peer dependencies?
* frozen lockfile install
* Explicitly use version 16
* Add env
* Add altair demo
* Add unit test
* CHANGELOG
* Add image to changelog
* Add outbreak_forcast notebook
* Try again
* generate again
* Update ui/packages/plot/src/Plot.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
* Fix title
Co-authored-by: aliabid94 <aabid94@gmail.com>
2022-12-02 14:53:42 -03:00
Abubakar Abid
5c8e7887dc
Add Markdown support in chatbots ( #2731 )
...
* started working on this
* demo
* added markdown support
* notebook
* changelog
* tests
* chatbot
* formatting
2022-11-29 14:26:21 -06:00
Kashif Rasul
d79039beb1
Latex support ( #2696 )
...
* initial use of dollarmath plugin
* add frontend support
* chnages
* changes
* changes
* changes
* changes
* fix
* added latex to kinematics blocks
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* added example to changelog
* remove param
* doc fix
* fixes
* latex noteboox fix
* fix
* changes
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-29 11:26:17 -08:00
Ali Abdalla
67275ec1d6
Add open in colab buttons to demos in docs and /demos ( #2608 )
...
* add generate_notebooks and run it
* add buttons to demos tab
* add buttons to docs
* add github check
* fix erros
* Update run.py
* Update run.py
* fix github action
* add nbformat
* wget files from demo directory
* testing with regex
* typo in github action
* cd first
* correct notebooks
* remove prit
* testing
* regenerate ids in notebooks
* testing action
* testing action
* testing action
* sort files before wget so no git diff
* skip DS store and others as sub files
* example demo change without notebook change
* fixes
* example demo change without notebook change
* example regenerated notebooks
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update .github/workflows/check-demo-notebooks.yml
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* gh action comments
* gh action syntax
* gh action syntax fixes
* test demo change without generating notebooks
* ran the suggested command
* remove unnecessary script
* add notebook for upload button demo
* switch to pull_request_target
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-22 16:56:46 -08:00
Dawood Khan
b5f22671a2
Add Upload Button ( #2591 )
...
* add upload button
* upload button
* changelog
* Update CHANGELOG.md
* format
* update file component
* upload button fixes
* label
* remove fileupload changes
* remove file component changes
* restore lock file
* pnpm lock file
* Update CHANGELOG.md
* fixes
* fixes
* more fixes
* fix tests
* fixes
* lockfile
* fix test
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-21 13:34:31 -05:00
Abubakar Abid
5e148c3752
Adding ability to access in Fastapi request object into your function ( #2641 )
...
* fastapi requests
* formatting
* implement
* fix
* formatting
* formatting
* changelog
* added demo
* remove print
* added to guide
* changes for queuing
* changes to gr.Request
* formatting
* formatting
* fixes
* lint
* fixed tests
* fix batching
* fixing tests
* cleanup
* lint
* added tests; fixed review
* improve docs
2022-11-19 00:52:06 -08:00
Freddy Boulton
8d59c1480e
More demo fixes ( #2656 )
...
* Minor tweaks
* Fix gr outputs
* Fix changelog
2022-11-16 15:42:24 -05:00
pngwn
4b57984ead
add password and email textbox types ( #2653 )
...
* add password and email textbox types
* changelog + fix tests
* formatting
* fix tests maybe
* fix tests
* add more tests
* whatever
* weird thing
2022-11-15 22:23:47 +01:00
Freddy Boulton
a8f961ec7e
Fix demos ( #2648 )
2022-11-15 10:04:01 -05:00
Freddy Boulton
9ec45f64b9
Move map to demos page ( #2627 )
2022-11-09 09:26:36 -05:00
Ali Abdalla
a80084f3df
Dropdown for seeing docs as latest or main ( #2544 )
...
* support docs for pip and git
* upload spaces with gradio wheel
* aws
* upload wheel to aws
* fix error in docker compose
* fix dockerfile
* fix dockerfile
* fix upload demos
* fix upload demos
* styling
* fake change
* remove check_version
* fixes
* fix buttons
* fix navigation on main
* add github action
* build version docs in docker
* fix path and docker errors
* add requests
* fix command
* more docker fixes
* more docker fixes
* no prerelease
* fix restart demos
* undo fake changes, and fix build_version
* fix variable
* fix mistake
* add how to build from main
* new line to requirements
* fix instructions
* Update CHANGELOG.md
* duplicate line in Dockerfile
* switch to github actions, use separate pages
* fix issues in github action
* fix path for github action
* more fixes
* more fixes
* fix github action
* add template
* fix demos template
* update release notes for 3.9
* add -A
* refactor
* keep old version htmls
* unpin gradio version in requirements
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-08 13:02:05 +01:00
Freddy Boulton
f795a4d3b1
Use read_sql in database guide ( #2604 )
...
* Move demo to gradio + fix code
* Foo
* Address comments
2022-11-04 16:31:08 -04:00
Freddy Boulton
a6e72f7814
Fix some spaces that were not building ( #2596 )
...
* Add requirements
* Delete unused demo
* Remove some spaces from download
* explain reasoning
2022-11-02 17:47:53 -04:00
Freddy Boulton
4a51cec5b4
Call fn by api_name when using Blocks.load ( #2593 )
...
* Updated implementation + test
* Add changelog
* Fix unit test
2022-11-02 13:38:56 -04:00
Freddy Boulton
fa08e711fa
Add live dashboard demo ( #2573 )
...
* Add live dashboard demo
* Remove markdown syntax
* Dont use global
* Undo change
2022-11-02 12:48:26 -04:00
Dawood Khan
3f9cf301ed
Fixing links in plotly map guide + demo ( #2578 )
...
* move demo to gradio org
* Update CHANGELOG.md
* Update CHANGELOG.md
2022-11-01 18:18:08 -04:00
Freddy Boulton
a23eb53e3b
Run events every given number of seconds ( #2512 )
...
* WIP
* Fix implementation
* Fix units
* Rename
* Delete dead code
* This works
* Fix tests
* Final fix - still rough
* Reduce code duplication
* Fixing bugs + test
* Changelog
* Add gif to changelog
* Update demo and remove unused imports
* undo accidental diff
* Linting
* Add to guides
* Address comments
* formatting changelog
* Fix warnings
2022-10-28 17:53:06 -04:00
aliabid94
10552cb6fd
Allow user to send inputs as dictionary ( #2550 )
...
* change
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* format
* changes
2022-10-28 10:52:28 -07:00
Freddy Boulton
943cdd5f35
Add dashboard demo to Demos tab ( #2508 )
...
* Add demo
* Changelog
* Undo
* Fix formatting
2022-10-25 11:15:18 -04:00
Abubakar Abid
d7c96e1ad8
Adds a demo to show how a sound alert can be played when a prediction is complete ( #2478 )
...
* add sound alert demo
* changelog
* update changelog
* address suggestions
2022-10-18 13:03:07 -07:00
Freddy Boulton
831ae1405f
Cancel events from other events ( #2433 )
...
* WIP
* Use async iteration
* Format + comment
* Very hacky WIP
* Fix synchronization
* Add comments + tidy up implementation
* Remove print
* Fix rebase
* Lint
* Disconnect queue when cancelled
* Add stop button for interface automaticallY
* Unit tests + interface fixes
* Skip some tests on 3.7
* Skip in 3.7
* Fix skip message
* Fix for python 3.7
* Add stop variant to button variant type union
* CHANGELOG
* Add demos/gifs to the changelog
2022-10-14 18:43:24 -04:00
Ali Abdalla
bff43bfb65
Upload all demos to spaces ( #2281 )
...
* upload all demos in the repo to spaces
* remove upload_demos from recipes, fix error
* load docs and guides demos from spaces
* Remove old demos dir, container, nginx and docker-compose
* update landing page spaces through /demo
* fix run filenames
* skip demos without a run.py file
* fix embedding in guides and docs
* update only on version change
* fix restart script
* fix broken demos
* add component demos
* website tracking pip
* fix embedded components
* fix components
* fix extra slash
* remove footers correctly
* Update CHANGELOG.md
* fix race condition
* add inner_template to gitignore
* set runfile to run.py
* fix time.sleep after testing
* check for prereleases
2022-10-14 14:07:26 -07:00
pngwn
78ab2c8e67
fix interactivity of value-less components with no dependencies ( #2459 )
...
* fix interactivity of value-less components with no dependencies
* changelog
* changelog fix
* changelog fix
* changelog fix
* formatting
2022-10-14 17:12:42 +01:00
Dawood Khan
1d18ddae66
Add blur event to textbox and number ( #2448 )
...
* add blur event to textbox and number
* changelog
* fixes
* fix blur for number
* reformat
2022-10-12 23:53:05 -04:00
pngwn
ed4f3e4ffd
add snapshot testing ( #2438 )
...
* add snapshot testing
* bump ci image
* tweak
* tweak
* fix gitgignore
* fix gitgignore
* dedicated snapshot script
* clean up tests
* tweaks
* fix ci
* fix script
* oops
* fix
2022-10-12 17:30:42 +01:00
Dawood Khan
3a2de9b415
Map demo + Guide ( #2402 )
...
* map demo + guide
* fixes
* update dataset to load from hub
* remove csv file
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-11 23:51:48 -04:00
aliabid94
ac378d0875
Stream works now ( #2351 )
...
* changes
* changes
* lazy load streaming deps
* lazy load streaming deps
* cleanup
* fix last chunks of streaming
* add changelog
* add changelog
* add changelog
* add changelog
* updated streaming demo
* renamed sst
* changes
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-05 14:11:47 -07:00
aliabid94
1f5efa7efa
Reworking layout styling ( #2291 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* version
* changes
* formatting
* version
* remove group hack
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* test
* changes
* changes
* changes
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-03 18:01:41 -05:00
Freddy Boulton
40febc3584
Make image_classifier_interface_load runnable ( #2365 )
2022-09-29 14:47:40 -04:00
Dawood Khan
55e6f40f80
Typeable value on gradio.Slider ( #2329 )
...
* typeable number slider
* fix hardcoded files in test configs
* test
* test fix
2022-09-26 23:00:02 -04:00
aliabid94
a05f32c8f1
Add captions to galleries ( #2284 )
...
* changes
* fix demo
* change
* changes
* test
* testing demo
* testing demo
* testing demo
* changes
* change
* changes
* merge
* changes
* fix
* changes
* changes
* changes
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chnages
* changes
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-26 19:56:16 -07:00
Freddy Boulton
9f7dd05b72
Start queue when gradio is a sub application ( #2319 )
...
* First stab at it
* Use util methos
* lint
* Test
* Fix formatting
* Try out setting predict endpoint from websocket request
* lint
* Fix bug
* Address comments - remove server and port
* Skip in 3.7
* Fix documentation
* Add default 🤦
* docs tweak
* Add back imports that were deleted by wrong linter version
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-23 16:01:44 -04:00
Abubakar Abid
cecaf1a635
Sketching + Inpainting Capabilities to Gradio ( #2144 )
...
* templates
* working on backend
* formatting
* Sketching fe (#2184 )
* fix scaling on sketch + bg img
* tweaks
* ketch updates
* cursor style
* sketchpad
* fixes
* ensure background is white for bw sketch
* fix everything
* re-enable demos
* updated demo and changed from dict to str
* beta release
* fix bugs, tweak webcam source
* re-anable demos
* fix clear button and tab changing
* maybe fix test
* maybe fix test again maybe
* various fixes
* fix img uplaod + color sketch
* remove lazy brush but keep smoothing
* fix sketch bg
Co-authored-by: pngwn <hello@pngwn.io>
2022-09-23 13:14:56 +02:00
Freddy Boulton
b8fc551807
Raise warning when trying to cache examples but not all inputs have examples ( #2279 )
...
* Add error message + test
* Undo changes to fake_gan
* Raise warning message instead
* Fix typo in warning message
* Remove unused import
* Address comments
2022-09-20 10:48:52 -04:00
Abubakar Abid
6c33eed976
Promotes postprocess
and preprocess
to documented parameters ( #2293 )
...
* changes
* Delete media_data.py.isorted
* fixes in other files
* fixes in other files
* added for grid
* removed status tracker
* removed status tracker
* added deprecation warning
* formatting
2022-09-19 19:38:17 -05:00
Dawood Khan
42a9c2688f
Fix Multiple File Examples ( #2267 )
...
* fix multiple file examples
* format
* fix
* change demo name zip_files
* change func names
2022-09-15 14:40:59 -04:00
Ali Abdalla
597337dcb8
Adding a Playground Tab to the Website ( #1860 )
...
* added playground with 12 demos
* change name to recipes, restyle navbar
* add explanatory text to page
* fix demo mapping
* categorize demos, clean up design
* styling
* cateogry naming and emojis
* refactor and add text demos
* add view code button
* remove opening slash in embed
* styling
* add image demos
* adding plot demos
* remove see code button
* removed submodules
* changes
* add audio models
* remove fun section
* remove tests in image semgentation demo repo
* requested changes
* add outbreak_forecast
* fix broken demos
* remove images and models, add new demos
* remove readmes, change to run.py, add description as comment
* move to /demos folder, clean up dict
* add upload_to_spaces script
* fix script, clean repos, and add to docker file
* fix python versioning issue
* env variable
* fix
* env fixes
* spaces instead of tabs
* revert to original networking.py
* fix rate limiting in asr and autocomplete
* change name to demos
* clean up navbar
* move url and description, remove code comments
* add tabs to demos
* remove margins and footer from embedded demo
* font consistency
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-15 08:24:10 -07:00
Freddy Boulton
f346118133
Show view api button even if there are no named api routes in the app ( #2250 )
...
* Show message when no named api routes
* Lint
* Change text slightly
* Add show_api to launch method + fix text
* Undo changes to demos
* Change url example
2022-09-15 11:11:31 -04:00
Abubakar Abid
1beb54a8c0
Add documentation about how to create and use the Gradio FastAPI app ( #2263 )
...
* added a demo
* added in docs
2022-09-14 14:23:12 -07:00
Abubakar Abid
809230f25f
Added support for URLs for Video
, Audio
, and Image
( #2256 )
...
* added url support
* avoid copying temp file
* formatting
* remove unused import
* fixes
* updated example
* fix
2022-09-13 17:24:50 -07:00
Abubakar Abid
bf1510165d
Support for iterative outputs ( #2189 )
...
* Support for iterative outputs (#2162 ) (#2188 )
* added generator demo
* fixed demo structure
* fixes
* fix failing tests due to refactor
* test components
* adding generators
* fixes
* iterative
* formatting
* add all
* added demo
* demo
* formatting
* fixed frontend
* 3.2.1b release
* removed test queue
* iterative
* formatting
* formatting
* Support for iterative outputs (#2149 )
* added generator demo
* fixed demo structure
* fixes
* fix failing tests due to refactor
* test components
* adding generators
* fixes
* iterative
* formatting
* add all
* added demo
* demo
* formatting
* fixed frontend
* 3.2.1b release
* iterative
* formatting
* formatting
* reverted queue everywhere
* added queue to demos
* added fake diffusion with gif
* add to demos
* more complex counter
* fixes
* image gif
* fixes
* version
* merged
* added support for state
* formatting
* generating animation
* fix
* tests, iterator
* tests
* formatting
* tests for queuing
* version
* generating orange border animation
* testings
* added to documentation
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-09-08 07:35:31 -07:00
aliabid94
f8523868d0
Add accordion component ( #2208 )
...
* changes
* changes
2022-09-07 20:32:10 -07:00
Freddy Boulton
6c1bfbb42c
Fix bugs with gr.update ( #2157 )
...
* Use void to reset to original state
* Cosmetic fixes to comments
* Use keyword
* Set default value to no value
* Fix test
* Make private
* Improve comment on _Keywords.NO_VALUE
Improve comment
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Use NO_VALUE in `test_blocks`
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update test/test_blocks.py
Use NO_VALUE in tests
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-06 17:08:38 -04:00
Freddy Boulton
9b4bf627f2
Add orig_name to serialized file repr ( #2145 )
2022-09-06 10:40:59 -04:00
aliabid94
b2a181d4b0
Show error on Connection drops ( #2094 )
...
* changes
* changes
* fix
* changes
* fix
2022-08-31 13:16:43 -07:00
aliabid94
99833d506e
Refactoring Layout: Adding column widths, forms, and more. ( #2097 )
...
* changes
* changes
* fix
* change
* change
* changes
* changes
* changes
* changes
* change
* remove test config outputs
* fix wflow
* attempt root user
* attempt root user
* attempt root user
* attempt root user
* changes
* changes
* changes
* changes
* changes
* change
* changes
* change
* Update gradio/layouts.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-29 19:51:01 -07:00
Freddy Boulton
85229a7058
Catch IndexError, KeyError in video_is_playable ( #2113 )
2022-08-29 12:57:04 -04:00
Abubakar Abid
4d58ae79b3
Improvements to State
( #2100 )
...
* state
* state fix
* variable -> state
* fix
* added state tests
* formatting
* fix test
* formatting
* fix test
* added tests for bakcward compatibility
* formatting
* config fix
* additional doc
* doc fix
* formatting
2022-08-29 09:53:05 -07:00
Abubakar Abid
f2733d8f94
Fix issues related to demos in Spaces ( #2086 )
...
* skip demos in all_demos that don't run
* hack for spaces
* put import back
* added audio debugger demo
* audio fix
* fixed audio debugger
* testing
* test
* remove prints
* fix
* fix
* removed import
2022-08-26 16:35:47 -07:00
Abubakar Abid
4a1321ce8a
Updated our analytics on creation of Blocks/Interface ( #2082 )
...
* added version to analytics
* formatting
* fix flake
* disabled analytics on anything that runs via ci/cd
* formatting
2022-08-25 13:23:28 -07:00
Abubakar Abid
88e9c19c27
Cleaning up the way data is processed for components ( #1967 )
...
* remove preprocess_example
* removing methods
* added path support for images
* fixes
* video
* formatting
* fixing preprocess
* fixes
* removed from audio
* fixed file
* formatting
* serialization
* foramtting
* formatting
* removed save flag / restore flag
* formatting
* removed flagging
* removed
* load value
* fixing typing
* fixes, typing
* fixes
* file
* handling images
* formatting
* fixed serializing for flagging
* formatting
* json
* temp file
* removed processing
* changed processing
* fixed temp FINALLY
* flagging works
* fix examples test
* formatting
* async examples
* working on mix
* comment out failing test
* fixed interface problem
* fix kitchen sink deprecation warning
* gallery examples
* fixes
* fixes to serialization
* fixing label serializing
* fixed file serialization
* kitchen sink restored
* outbreak forecast updated
* formatting
* formatting and api mode
* fix 1 test :/
* fixing tests
* fixed components tests
* remvoed test files
* formatting
* fixed examples
* fixes
* formatting
* restored certain files
* added encryption
* fixed syntax mistake
* formatting
* fixed 1 test
* clean up interface
* formatting
* fixed route tests
* more fixes
* formatting
* formatting
* fixing pipeline
* format frontend
* format backend
* tweaks
* fix
* fix final test?
* merged
* Sanitize for CSV (#2017 )
* sanitize for csv
* added sanitization logic
* fixed examples
* turn cache off
* fixed example caching with optional inputs
* fixed review problems
* fixed Interface.load
* updating the tests
* updating the tests
* fix
* fixed seriailizing
* testing
* rewrite run prediction
* formatting
* await
* fixes
* formatting
* finally fixed mix
* fixed tests
* formatting
* formatting
* deserialize fix
* formatting
* fixes
* fixes
* fix
* fix tests
* fixes
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-08-23 08:31:04 -07:00
Freddy Boulton
e2dc87aa2b
Reset components to original state by setting value to None ( #2044 )
...
* Fix + test
* Fix test
* Rename demo file
* Delete unused demo
* Refactor into independent demos
* change (#2059 )
* Remove chatbot
Co-authored-by: aliabid94 <aabid94@gmail.com>
2022-08-22 16:04:59 -04:00
aliabid94
1510cb73cc
Queue error fix & custom errors ( #2047 )
...
* changes
* format
* changes
* changes
* custom error
* change
* change
* change
* changes
* change
* fe fix
* changes
* changes
2022-08-22 11:05:55 -07:00
Ömer Faruk Özdemir
f66c104fc2
Max thread tweaks ( #2038 )
...
* max-thread-tweaks
1. move creation of limiter to fastapi endpoint since run_coro_in_background works only in there
2. make max_threads compatible with queue concurrency count
* max-thread-tweaks
1. add warning to run_coro_in_background
2022-08-19 16:28:52 -04:00
aliabid94
029637cef9
Queue maximum length ( #2036 )
...
* changes
* format
* changes
* changes
2022-08-18 18:29:51 -04:00
Dawood Khan
13915f9c11
[Integration Tests] Update a demo's config.json as part of integration test ( #2005 )
...
* add script to create configs for test demos
* no message
* fixes
* fixes
* fix
* test fix
* test fix
* format
* fix
2022-08-17 15:43:26 -04:00
aliabid94
b1dfc9a172
Release new queue beta ( #1969 )
...
* queue-refactor-backend (#1489 )
* queue-refactor-backend
- create a template for the new design
* queue-refactor-backend
- clean after the old queue
* queue-refactor-backend
- add basic test to websocket endpoint
* queue-refactor-backend
- small fix
* queue-refactor-backend
- debugs&fixes&finalizations
- test the flow with postman
* queue-refactor-backend
- tweaks on websocket closing
* queue-refactor-backend
- cleanup
* queue-refactor-backend
- cleanup & tweaks
* queue-refactor-backend
- cleanup & tweaks
* queue-refactor-backend
- cleanup & tweaks
- correct the exception handling
* queue-refactor-backend
- add websockets dependency
* queue-refactor-backend
- reformat
* queue-refactor-backend
- add single event test
* queue-refactor-backend
- tweaks
- remove outdated tests
* queue-refactor-backend
- reformat
* queue-refactor-backend
- reformat
* queue-refactor-backend
- reformat
* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue
* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue
* queue-refactor-backend
- tweaks
* queue-refactor-backend
- make SLEEP_WHEN_FREE shorter
Co-authored-by: Ali Abid <aabid94@gmail.com>
* Add estimation parameters to queue (#1889 )
* - tweaks on Estimation
* version
* Revert "version"
This reverts commit bd1f4d7bfe
.
* some fix and tweaks
* implement queue frontend (#1950 )
* implement queue frontend
* fix types
* fix ws endpoint in build mode
* cleanup
* Queue tweaks (#1909 )
* tweaks on estimation payload
* Queue keep ws connections open (#1910 )
* 1. keep ws connections open after the event process is completed
2. do not send estimations periodically if live queue updates is open
* fix calculation
* 1. tweaks on event_queue
* fix issue - create new ws for each request
* format
* fix
* fix tests
* fix tests
* tets
* test
* changes
* changes
* changes
* change'
* wtf
* changes
* changes
* file perms
* Release queue beta v1 (#1971 )
* - release the new queue
* - bypass the issue in the tests
- rewrite the lost part in the codebase
* - add concurrent queue example (#1978 )
* rank_eta calc
* Queue fixes (#1981 )
* change
* format
* - comment out queue tests as they dont work well
* - reformat
* Update gradio/event_queue.py
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
* changes
* changes
* change
* weird fix
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
* release-queue-v3 (#1988 )
* Fix frontend queuing to target secure WSS (#1996 )
* change
* format
* changes
* queue-concurrency-tweaks (#2002 )
1. make gather_data and broadcast_estimation sequential instead of concurrent because they were deleting elements at the same time and raising expections which was lowering the performance
* Update Queue API, documentation (#2026 )
* changes
* changes
* fixes
* changes
* change
* fix
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-08-17 11:17:56 -07:00
Freddy Boulton
75b51808e2
Convert video to playable format if ffmpeg installed ( #2003 )
...
* Add implementation + tests
* Add comments'
* Add warning
* Update docs
* Refactor logic
* 3.7 fix attempt
* Fix 3.7 take 2
* Return original video if the conversion fails
* Use ffmprobe + restrict scope of exception
* Fix for windows
* Fix tests
2022-08-16 13:21:13 -04:00
Freddy Boulton
8e24d5d646
Deploy All Demos to Spaces on PRs ( #2012 )
...
* Add step to deploy to spaces on release
* Import package not modules
* Lint
* Hacky solution
* Add app file
* Github actions script
* Fix bucket url
* Update versioning
* Fic typo in script
* Change path
* Fix quote
* Clean up action
* Fix keys
* Formatting + comment
* Fix all_demo creation
* lint ui
* Get latest pypi version and use only 20 demos
* Test version change works correctly
* Fix gradio version
* Fix typo
* Use github sha to rebuild on every commit
* Get sha the proper way
* Change where env is accessed
* Fix typo in cp
* Undo changes to version.txt
* Add matrix transpose
2022-08-16 12:07:20 -04:00
Freddy Boulton
21f9da9380
Automatically deploy kitchen sink to spaces on release ( #1994 )
...
* Add step to deploy to spaces on release
* Import package not modules
* Lint
* Add comment on slack
2022-08-12 11:51:36 -04:00
Freddy Boulton
393c1f47d5
Fix invalid wav file error when converting from microphone to file ( #1987 )
...
* ;q
:wq
* Add demo
* Add unit test
* Fix test
* Slight refactor
* Lint
* Delete some recordings - import module not method
2022-08-09 16:40:31 -04:00
Freddy Boulton
d7c1a9eec4
Prevent Dataframe post-processing from changing dtypes ( #1979 )
...
* Fix datetime logic python
* Fix docstring
* Add demo
* Update test
2022-08-08 21:28:07 -04:00
Abubakar Abid
0cdb9b564c
Fix screenshot gif ( #1966 )
...
* fix screenshot
* fix gif
2022-08-08 09:52:21 -07:00
Freddy Boulton
1fcff2d710
Allow Users to set random value on sliders on app load ( #1935 )
...
* Allow value=random for slider
* Commit all files
* Remove commented out breakpoint
* Remove unused imports
* Always bypass queue
* Lint
* Add randomize parameter
* Update docstring
* Add load_fn logic
* Add new random logic
* Add kitchen sink random
* Add random kitchen sink
* Fix tests + lint
* Add test all components accept load_fn
* Update docstring
* Address final comments
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-05 18:51:03 -04:00
Freddy Boulton
299ba1bd1a
Fix bug where you cannot cache examples with Interface.load ( #1949 )
...
* Possible fix
* Remove breakpoint
* Implementation
* Add unit test
* Fix test
* Lint
* Add _api_mode to interface signature
2022-08-04 20:20:44 -04:00
pngwn
3a58dd1924
default to a single table row ( #1936 )
2022-08-02 22:02:49 -07:00
Freddy Boulton
db1ff439a7
Fix docs ( #1908 )
...
* Fix docs
* Fix ner demo
* refactoring script templates
* remove linksnav in guides
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-07-29 16:21:05 -04:00
Ali Abid
0e4931fbe2
changes
2022-07-26 15:11:08 -04:00
Abubakar Abid
0019c12844
added multistep to docs ( #1880 )
2022-07-25 17:00:13 -07:00
Martina Fumanelli
ba65a95e07
Add new component guide ( #1861 )
...
* Add first steps to new component guide
* Add last steps to new component guide
* Fix review minors on new component guide
* Fix first steps to new component guide
* Fix last steps to new component guide
* Fix color_picker demo examples
* Add code snippets to new component guide
* Apply suggestions from code review to new component guide
Co-authored-by: pngwn <hello@pngwn.io>
* Add explanation for different types of component files in new component guide
Co-authored-by: Luigi Cerone <luigicerone96@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-07-25 16:25:50 -04:00
Abubakar Abid
c9b8ad80fd
NER Improvements and Guide ( #1869 )
...
* ner accept hf format
* formatting
* added ner guide
* guide fixes
* added unittests for highlighttext
* formatting
2022-07-25 12:16:00 -07:00
Dawood Khan
cd0d520696
Plot Component Integration Test ( #1859 )
...
* plot integration tests
* format
* remove files
2022-07-25 12:48:59 -04:00
Ali Abid
21f80d77df
changes
2022-07-25 08:45:13 +01:00
Ali Abid
7a486d77f6
changes
2022-07-25 04:46:11 +01:00
Ali Abid
3a93202fd6
changes
2022-07-25 02:18:42 +01:00
曾逸夫(Zeng Yifu)
026e6cab55
Create run.py ( #1872 )
2022-07-23 17:22:54 -07:00
Dawood Khan
babbb7eb41
Add new i18n tokens ( #1751 )
...
* add new i18n tokens
* fixes
* fixes
* format
2022-07-22 21:32:55 +01:00
Abubakar Abid
c638aa9961
Improve flagging guide & add flagging with Blocks ( #1853 )
...
* improving guide
* flagging guide
* remove img
* fixed spaces
* fixes
2022-07-22 12:14:34 -07:00
Freddy Boulton
9360670e23
Add guide on how to add interpretation to a Blocks App ( #1851 )
...
* Add demo code
* Guide rough draft
* Update demo
* Add image classification demo
2022-07-22 12:00:24 -04:00
Freddy Boulton
c579aa195d
Clarify API of custom interpretation function + fix demo ( #1842 )
...
* Modify demo + guide on custom interpretation
* Fix typo
* Change interfaces to inputs
2022-07-21 09:42:49 -04:00
Abubakar Abid
493cf7c069
fix ( #1837 )
2022-07-20 06:39:47 -07:00
Freddy Boulton
3f9ec2c345
Add a guide on how to use apps like functions ( #1799 )
...
* Add examples for series and parallel
* Create demo + guide
* More formatting
* Change name of guide
* Fix typo
* Use english to german as example instead
* Expand phrase a bit
2022-07-19 17:43:53 -04:00
Freddy Boulton
4a1879edaf
Remove usage of deprecated gr.inputs and gr.outputs from website ( #1796 )
...
* remove deprecated api from docs
* Remove usage of 'state' shortcut
* Back out state changes
* Back out state changes in creating_a_chatbot
* Link chatbot guide to Variable docs
2022-07-19 11:53:01 -04:00
Ali Abdalla
0dbc8bfcf3
Embedding Components on Docs ( #1726 )
...
* add component code to demos docker files
* fix demo_name
* frontend
* fix demo-name in frontend
* remove built with gradio
* remove extra space
* styling
* wait till page loads
* fixing components that require more parameters
* remove print statements
* check for correct run file
* combining component demos to one file
* typo
* fixes
* suffix name
* add is_component
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-19 16:20:20 +01:00
Freddy Boulton
8aba1c991b
Add info to docs on how to set default values for components ( #1788 )
...
* Explicitly set value and add to docs
* Fix wording a bit
* Remove sentence that's not adding much
* Remove extra word
* Delete screenshot
2022-07-19 11:16:56 -04:00
Freddy Boulton
006347459c
Add color picker to docs ( #1768 )
2022-07-18 11:55:48 +03:00
Freddy Boulton
de4458361b
Add gr.update to blocks guide ( #1649 )
...
* Add gr.update to guide
* Add to docs page and add step-by-step guide
* Fix documentation tests
* PR reviews
* Use code snippet
* Make section title plural
* Blocks utils in their own section
2022-07-14 11:43:38 -04:00
pngwn
c323aac274
add example component for color picker ( #1779 )
2022-07-13 16:35:43 +01:00
Freddy Boulton
600722c218
Add examples for series and parallel ( #1738 )
...
* Add examples for series and parallel
* Add ML demos for interface and load
2022-07-11 11:21:30 -04:00
Freddy Boulton
54f330af48
Add examples component to docs ( #1729 )
...
* Add examples to docs
* Adding guide for examples
* Exclude guides from methods
* PR feedback: typos, different allowed values of examples, docstrings
2022-07-08 11:32:08 -04:00
pngwn
8c4e134094
allow users to update the current tab from python SDK ( #1709 )
...
* allow users to update the current tab from python SDK
* rename var
* ensure tabs work when no selected or id kwargs are passed
* update xray config
* update test
* update test again
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* change false to None
* update test configs
* fix test
* fix test
* update global tab selection
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-07 15:37:51 +01:00
Abubakar Abid
c9f522e02b
Allow excluding input components in examples ( #1722 )
...
* ignore None examples
* formatting
* added demo
* fixed test
2022-07-06 21:30:51 -07:00
Abubakar Abid
a1c391668a
Exposing examples as a component for Blocks ( #1639 )
...
* examples as component
* renamed examples
* simplify internal logic
* fix tests
* cleanup
* fixed parallel and series
* cleaning up examples
* examples
* formatting
* fixes
* added unique ids
* added demo
* formatting
* fixed test_examples
* fixed test_interfaces
* fixed tests
* removed test from now
* raise ValueError for bad parameter values
* fixing series
* fixed series
* formatting
* speed up by preprocessing examples
* fixed parameter validation logic
2022-07-06 11:23:35 -07:00
Abubakar Abid
e2cebde5e6
Allows setting custom <title> ( #1703 )
...
* fix title issue
* formatting
* docstrings and demos
2022-07-05 14:21:20 -07:00
pngwn
92889b7b93
1220 mirror webcam ( #1686 )
...
* support webcam mirroring for images
* flip video in preprocessor
* finalise webcam mirroring
* address review comments
* fix formatting
* improve video UI
* fix tests
* fix tests again
2022-07-05 17:30:02 +01:00
Luigi Cerone
8f89270f50
Color picker ( #1695 )
...
* Add new colorpicker component skeleton
* Updated colorpicker skeleton with some functionalities
* - Fix default input color
- Change input style
* Add colorpicker demo
* Add tests and code format
Co-authored-by: mfumanelli <fumanellimartina@gmail.com>
2022-07-05 08:50:17 +03:00
pngwn
609de11ce8
add markdown and html support to dataframe ( #1684 )
...
* add markdown and html support to dataframe
* fix bug, address review comments
* fix test
* fix test
* rename parser instance variable
2022-07-04 10:27:48 +01:00
Dawood Khan
eb42fc3cf8
Kitchen Sink Integration tests ( #1588 )
...
* tests
* more tests
* more tests
* remove files
2022-07-01 01:27:47 -04:00
Dawood Khan
7030a2a6cf
Fix example image thumbnail size ( #1627 )
...
* fix example image thumbnail size
* format
* remove cache examples
* add classes to token.css
* add small image
2022-07-01 01:27:35 -04:00
pngwn
1e6ceb9543
Mask image ( #1621 )
...
* changes
* add masking to image
* added preprocessing for mask
* tweaks + improvements to masking
* make mask work with webcam input
* cleanup
* fix default image
* fix default value when source is upload
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-25 01:11:28 +01:00
Dawood Khan
98121ee6a3
Issue #1594 : Plot component is not cached with examples ( #1600 )
...
* fix plot cache examples
* format
2022-06-20 13:13:35 -05:00
pngwn
8710d3a079
Wrap dataframe ( #1571 )
...
* add suport for table cell wrapping
* revert pkginfo change
* revert pkginfo change
* fixed tests
* formatting
* type hint
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-16 17:02:01 -07:00
aliabid94
11b12d9456
Scrolling by default only in Interface, remove progress animation on streaming ( #1499 )
...
* changes
* changes
* format
* changes
* add relative to block
* changes
* ensure statustracker component is never rendered by render
Co-authored-by: pngwn <hello@pngwn.io>
2022-06-13 17:11:19 -07:00
aliabid94
caa6a4e687
rework visible, attach to all components ( #1511 )
...
* changes
* fix
2022-06-13 16:49:23 -07:00
aliabid94
00e4b1436f
Allow styling height for Image and Video, also dynamic logic change ( #1503 )
...
* changes
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-10 19:56:07 -07:00
Ömer Faruk Özdemir
252f164026
add-multiple-event-demo ( #1519 )
2022-06-10 09:20:58 +03:00
aliabid94
f41ebdd616
Fix multiple file upload ( #1512 )
...
* changes
* Update utils.ts
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-09 16:53:41 -07:00
aliabid94
f3e070541e
Fix Login ( #1501 )
...
* changes
* format
2022-06-09 16:15:08 -07:00
aliabid94
293a5916cf
changes ( #1504 )
2022-06-09 15:46:07 -07:00
Dawood Khan
f374eec22d
Fix cache examples for audio, video and image ( #1459 )
...
* image examples fix
* fix image test
* fix cache examples for audio and video
* fix tests
* fix audio test
* fix restore flagged file
* fix tests
* reformat
* tests fixes
* fix test
* reformat
* format
* fix test
* reformat
* fix image test
* renamed video demo
* removed redundant test that may have been causing rate limiting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-07 15:10:19 -07:00
pngwn
cc6aeb6d72
distribute gradio as a web component ( #1444 )
...
* distribute gradio as a web component
* fix layout + loader + dark mode in embedded wc
* fix lockfile issue
* formatting
* prevent loader conflicts
* fix formatting
2022-06-07 11:11:44 -07:00
Ali Abdalla
42cee33dcf
API Docs with support for Blocks ( #1397 )
...
* backend
* updated PyPi version to 3.0.10
* updated PyPi version to 3.0.9b10
* fixes
* updated PyPi version to 3.0.9b11
* changes
* changes
* changes git push
* changes
* undo
* fixes
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-06 09:10:42 -07:00
pngwn
279df2322d
fix button styling ( #1447 )
2022-06-01 11:33:53 -07:00
pngwn
068132836c
Style updates ( #1350 )
...
* clean up python style api
* allow Box to be styled
* changes
* update style args and add md doc detailing
* cleanup
* add deprecation warnings
* fix
* formatting
2022-06-01 18:02:18 +01:00
Dawood Khan
7b9cba0e9e
File Cached Examples Fix ( #1334 )
...
* fix file cache examples issue
* format
* fix for tests
* format fix
* fix multiple files input
* format
* format
* fix preprocess example
* fix multiple file output
* remove single_file const
* fix tests + format
* renamed demo
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-01 12:23:12 -04:00
Dawood Khan
2eaf61cf76
Integration tests ( #1182 )
...
* some integration tests
* more integration tests
* more tests
* update integration tests
* format
2022-05-27 04:53:50 -04:00
aliabid94
0a8222719e
fix default variable value ( #1381 )
...
* fix default variable value
* format
2022-05-26 14:22:05 -07:00
aliabid94
3a7f9a3b1a
Allow users to return dicts for values ( #1373 )
...
* changes
* changes
* add visible flag
2022-05-24 23:30:24 -07:00
Dawood Khan
a487ec2d3e
fix blocks-kinematics demo ( #1340 )
2022-05-19 16:52:04 -04:00
pngwn
096f4b5b56
add label to data frame ( #1328 )
2022-05-18 15:14:12 -07:00
Ali Abdalla
5b827f5b2c
Fixes to embedded demos in website docs ( #1315 )
...
* remove webcam from video demo
* remove blocks_gpt and blocks_neural_instrument_coding demos
* only show Try Examples if examples exist
* remove if name = main from rendereed code
* rename demos that have same name as component
* remove references to old demo names from guides
* add model3d demo
2022-05-17 14:18:51 -04:00
AK391
df4d9f472f
New big gifs ( #1305 )
...
* hello world gif update
* cropped hello world gif
* hello world 2 new gif
* update hello world 3 new gif
* fix hello world 2 gif
* update sephia filter gif
* update sales projection gif
* update calculator new gif
* update live calculator gif
* fix hello world gif
* update hello world 2 gif
* update gif for blocks_flipper
2022-05-17 00:33:55 -07:00
Abubakar Abid
ed8301d658
gifs in readme ( #1298 )
...
* hello world
* gif
* sepia
* replace calc gifs
* crop calculator gif
* final gifs
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: AK391 <81195143+AK391@users.noreply.github.com>
2022-05-16 14:33:14 -07:00
Abubakar Abid
4c7d0ac6d6
gif ( #1296 )
2022-05-16 13:41:06 -07:00
Abubakar Abid
56f1843931
Update readme ( #1292 )
...
* update readme
* update readme
* update readme
2022-05-16 13:31:56 -07:00
aliabid94
2a93225952
Create Streamables ( #1279 )
...
* changes
* fix
* fix for vars too
* changes
* fix tests
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-16 11:51:09 -07:00
pngwn
8b1a50775a
General tweaks ( #1276 )
...
* tweaks + radio fix
* remove unused prop
* revert demo
* ensure table renders empty strings and zeroes
* remove logs
* remove bundle stats
2022-05-16 18:22:09 +01:00
aliabid94
a4aa6a2cb9
Add embedded demos to website ( #1270 )
...
* adding gallery
* added netlify files
* new navbar design
* header section new design
* used by section new design
* cards section new design
* integrates with section new design
* customer stories section new design
* footer and gradient
* demos section new design
* docs fixes
* docs reorg
* docs reorg
* upgrading to tailwind 3
* tailwind config changes
* navbar new design
* fixing body on all pages
* Updating Guides (#1012 )
* updating getting started
* updated codecov version
* tweaks to gs
* added netlify file
* added netlify file
* website prebuild script
* increased code size
* blocks
* edits
* blocks_hello
* hello world
* guide
* merge main
* added flipper demo
* guide
* guide
* add guides
* tweak to refresh website
* header section new design
* demos section new design
* cards design
* used by section
* tweets section
* footer on all pages
* mobile responsive fixes
* mobile responsive fixes
* https fonts
* completed blocks guide
* unify components
* minor tweaks
* docs headers styling and navigation pane
* parameter code blocks
* styling description and input type
* parameter tables and other styling
* only documenting interactive components when possible
* guides
* embedding not working
* demos not working
* fixing demo code
* fixing demos
* demo fix
* updated demos
* updated demos
* ui update
* updated docstrings
* updated code snippets so they run
* updating docs
* Interface docs
* updating interface
* fixing parameters in interface.py
* required and defaults for interface, and styling
* fixing up interface (#1207 )
* fixing up interface
* fixed interface methods
* formatting
* updating interface docs
* updating interface docs
* formatting
* docstring to load from docstrings
* fixed colors
* finalize interface content
* interface examples
* fixed examples
* added some blocks docs
* blocks
* component fixes
* reorganized some files (#1210 )
* formatting
* added info for every component
* fixes
* blocks docs
* added blocks demos
* adding combined interfaces
* added parallel, series
* Doc: layout update (#1216 )
* doc layout
* home spacing
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* adding layouts
* layouts done
* added events for components
* formatting and https
* brings back dropdown and other components
* fix header ids
* moved ids and fixed nav
* added parameters for remaining component
* docstring fixes
* landing page demos
* demo window placeholder
* demo nav
* fixed test
* formatting
* demo code
* correctly importing gradio css/js
* remove keyvalues
* modify launch script to move gradio assetS
* components embedded test
* correct demo name
* hide try demo and embedding
* local devserver changes
* create embedding json with configs
* changes
* fixes
* comment out layout docs
* demo work
* demo fixes
* demo embedding fixes
* typo
* jinja fix
* demo nav fix
* hide demo button
* formatting
* removed whitespace
* remove newline from parameter
* styling demo window
* copy work
* hide demo buttons
* remove index
* remove layouts from docs
* remove merge artifact
* merge dockerfile
* chagnes
* changes
* changes
* changes
* styling demo window
* revert most things
* whoops
* chagnes
* changes
* changes
* changes
* changes
* changes
* changes
* format
* changes
* fixed Dataset docstring
* fix component signature and add required
* adding string shortcuts
* fix small issues parameter docstringss
* string shortcuts
* fixed gallery and label values
* added for remaining parameters
* formatting
* extended embedded components
* typo
* remove capitalization from embeddings
* try examples button
* added demos for blocks and combining interfaces
* demos styling
* homepage update (#1275 )
* spacing
* remove console.log
* demo window fixes
* new spaces
* shorten codeblock width
* fix plot
* better string shortcuts
* add embedding config for json
* remove console log
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-05-16 11:45:38 -04:00
Abubakar Abid
ecda9d1c53
Improves "Getting Started" guide ( #1269 )
...
* making quickstart better
* fixed quickstart
* quickstart
* advanced features
* advanced features
* simplified blocks demo
* added sidebars to guides
* added a little bit of padding
* shortened
2022-05-16 08:35:17 -07:00
aliabid94
569a16998d
fix slider ( #1268 )
2022-05-15 23:55:35 -07:00
pngwn
ed074f9cff
Static forms ( #1264 )
...
* refactor dynamic-static detection
* refactor dynamic-static detection
2022-05-15 18:44:15 +01:00
Radamés Ajna
73e98ddf15
Small fixes for multiple demos compatible with 3.0 ( #1257 )
...
* add required param but None
* import torch req, add chunk_length_s
import torch requirement for transformers
enable inference for longer audio files
* fix compononte initialization
* input number is float, force int to multipy string
* no need for Templates, fix class init
* expects array
* add requirements.txt for demo
* update with cleaner syntax
* add sample csv to fraud demo
* adapt to new syntax
* temp fix for Slider arguments
* add dep to requirements
* remove gr.Markdown from Interface init
* fix default value param name
* upgrade deepspeech, download models onstart
* use path resolution consistent with other demos
* remove redundant demo
* add example to interface
* fixed plotting issues
* plots
* deprecated carousel
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-13 22:45:44 -07:00
Abubakar Abid
63d0a28c08
Website Design Changes ( #1015 )
...
* adding gallery
* added netlify files
* new navbar design
* header section new design
* used by section new design
* cards section new design
* integrates with section new design
* customer stories section new design
* footer and gradient
* demos section new design
* docs fixes
* docs reorg
* docs reorg
* upgrading to tailwind 3
* tailwind config changes
* navbar new design
* fixing body on all pages
* Updating Guides (#1012 )
* updating getting started
* updated codecov version
* tweaks to gs
* added netlify file
* added netlify file
* website prebuild script
* increased code size
* blocks
* edits
* blocks_hello
* hello world
* guide
* merge main
* added flipper demo
* guide
* guide
* add guides
* tweak to refresh website
* header section new design
* demos section new design
* cards design
* used by section
* tweets section
* footer on all pages
* mobile responsive fixes
* mobile responsive fixes
* https fonts
* completed blocks guide
* unify components
* minor tweaks
* docs headers styling and navigation pane
* parameter code blocks
* styling description and input type
* parameter tables and other styling
* only documenting interactive components when possible
* guides
* embedding not working
* demos not working
* fixing demo code
* fixing demos
* demo fix
* updated demos
* updated demos
* ui update
* updated docstrings
* updated code snippets so they run
* updating docs
* Interface docs
* updating interface
* fixing parameters in interface.py
* required and defaults for interface, and styling
* fixing up interface (#1207 )
* fixing up interface
* fixed interface methods
* formatting
* updating interface docs
* updating interface docs
* formatting
* docstring to load from docstrings
* fixed colors
* finalize interface content
* interface examples
* fixed examples
* added some blocks docs
* blocks
* component fixes
* reorganized some files (#1210 )
* formatting
* added info for every component
* fixes
* blocks docs
* added blocks demos
* adding combined interfaces
* added parallel, series
* Doc: layout update (#1216 )
* doc layout
* home spacing
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* adding layouts
* layouts done
* added events for components
* formatting and https
* brings back dropdown and other components
* fix header ids
* moved ids and fixed nav
* added parameters for remaining component
* docstring fixes
* landing page demos
* demo window placeholder
* demo nav
* fixed test
* formatting
* demo code
* correctly importing gradio css/js
* remove keyvalues
* modify launch script to move gradio assetS
* components embedded test
* correct demo name
* hide try demo and embedding
* local devserver changes
* create embedding json with configs
* changes
* fixes
* comment out layout docs
* demo work
* demo fixes
* demo embedding fixes
* typo
* jinja fix
* demo nav fix
* hide demo button
* formatting
* removed whitespace
* remove newline from parameter
* reverting comments
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-13 19:48:46 -07:00
pngwn
97929ee795
ui apis for dalle-mini ( #1258 )
...
* ui apis for dalle-mini
* changes
2022-05-13 18:37:55 -07:00
Ömer Faruk Özdemir
b8c4d3d6b8
Update run.py ( #1253 )
2022-05-13 19:10:45 +03:00
pngwn
700c4fc9cf
Layout bugs ( #1246 )
...
* fix layout issues
* fix visible kwarg + demo tweak
* fix blocks error wwhen parent is not column or row
2022-05-13 15:47:50 +01:00
Ömer Faruk Özdemir
2de9ee8bfb
update-shortcut-syntax ( #1234 )
...
* update-shortcut-syntax
- fix&update gr.component
- create a demo introducing shortcuts within Blocks
* update-shortcut-syntax
- tweaks
* update-shortcut-syntax
- tweaks
* update-shortcut-syntax
- fix formatting
* update-shortcut-syntax
- tweaks
- fix tests
* update-shortcut-syntax
- tweaks
- fix tests
* update-shortcut-syntax
- tweaks
- fix tests
2022-05-13 09:30:11 +03:00
aliabid94
33ef309451
Allow Custom CSS ( #1170 )
...
* changes
* css changes
* updated PyPi version to 2.9b24
* Revert "updated PyPi version to 2.9b24"
This reverts commit 48f678f491
.
* Revert "css changes"
This reverts commit d31cd525a4
.
* Revert "changes"
This reverts commit fadcb12ffe
.
* reverting
* reverting
* changes
* changs
* Revert "changs"
This reverts commit 49d815f6fe
.
* Revert "changes"
This reverts commit 481d7c21c4
.
* changes
* format
* changes
* format
* test fix
* test fix
* test fix
* fix tests
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-11 21:40:41 -07:00
aliabid94
5fc00b4567
Automatic word-break in highlighted text, combine_adjacent support ( #1209 )
...
* changes
* changes
* updated PyPi version to 2.9b26
* changes
* css tweaks (#1213 )
* css tweaks
* more tweaks
* fix lint error
Co-authored-by: pngwn <hello@pngwn.io>
2022-05-11 20:09:25 +01:00
aliabid94
ce47c48ebc
Update component config ( #1089 )
...
* first commit
* changes
* restore defualt_value name
* changes
* rm value=
* rm value=
* rm value=
* changes
* changes
* changes
* rename default_val to value
* changes
* changes
* changes
* changes
* format
* changes
* changes
* format
* test fix
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-10 17:11:43 -07:00
pngwn
4ca48284bb
hltext-label ( #1204 )
...
* show highttext label + tweaks
* show highttext label + tweaks
2022-05-10 17:01:36 +01:00
pngwn
94ab75dbec
962 dataframe ( #1186 )
...
* refresh dataframe
* add fixed rows + cols to dataframe
* tweaks
* validate dataframe headers + col_count
* cleanup
* cleanup
* make linter happy
* fix test
* fix test again
* fix test definitely this time
* implement file drop support for dataframe
* remove leftover files
* tweaks
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-08 21:55:02 -07:00
pngwn
936631c5b4
1183 component height ( #1185 )
...
* fix flex for layouts
* fix row form groups
* cleanup
2022-05-07 16:50:31 +01:00
aliabid94
b7ed8d6646
changes ( #1167 )
...
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-05 17:50:51 -07:00
pngwn
56222fbe2b
1148 loading status ( #1164 )
...
* update loader
* fix for non queued statuses
* remove logs
* Update demo/fake_gan/run.py
2022-05-05 20:05:05 +01:00
aliabid94
3e4ac376f5
Custom JS calls ( #1082 )
...
* first
* requested changes
* fix
* changes
* fixes
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-04 09:02:29 -07:00
aliabid94
8464481e22
image gallery component + img css ( #1140 )
...
* first commit
* format
* first commit
* Gallery component (#1142 )
* gallery
* ui update
* scroll gallery items, keeping them centered
* fix keyboard event
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
* formatting
* formatting
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-05-03 14:49:51 -07:00
pngwn
eca95a549d
Timeseries improvements ( #1149 )
...
* ensure chart works with decimal values + generatesaxis lines for values below 10
* add negative example
* use color palette for chart
* add colors kwarg to Timeseries
* fix test?
2022-05-03 14:05:17 -07:00
pngwn
e34210ccda
max_lines + autoheight for textbox ( #1153 )
...
* ensure autoheight always reruns when value changes
* implement lines + max_lines for textbox
* update demo
* fix test
2022-05-03 18:28:57 +01:00
pngwn
ce77c73551
add select event for tabitems ( #1154 )
2022-05-03 18:21:29 +01:00
Dawood Khan
190858ffb2
Chatbot custom color support ( #1092 )
...
* add color functionality to chatbot text bubbles
* chagne chatbot background colors
* chatbot color fixes
* merge conflict fix
* format fix
* chatbot fixes
* format
* remove prints
2022-05-02 09:41:20 +01:00
Victor Muštar
5f6ff85106
Examples UI ( #1121 )
...
* add fonts
* Update tailwind.config.js
* Examples UI
* demos examples update
* text align
* prettier
* formatting
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-02 09:38:18 +01:00
Ali Abdalla
babf914107
Fix demos in website ( #1130 )
...
* iframing spaces demos
* fix demos in getting started
2022-04-29 03:53:25 +02:00
Abubakar Abid
93e5a82ff2
Interface types: handle input-only, output-only, and unified interfaces ( #1108 )
...
* optional labels
* added prop
* Added IOComponent class
* get component fix
* fixed component function
* fixed test components
* formatting
* fixed output tests
* working on blocks tests
* fixed test blocks
* cleanup
* merged
* unrender
* add article
* formatting
* fixed render()
* added demo
* formatting
* merge main
* add interface types
* added output only
* added input only
* formatting
* added demos
* formatting
* removed unnecessary import
* updated demos
* fixed duplication
* fix for state
2022-04-28 03:06:16 -07:00
Abubakar Abid
8ad401ba33
Blocks rendering fix ( #1102 )
...
* optional labels
* added prop
* Added IOComponent class
* get component fix
* fixed component function
* fixed test components
* formatting
* fixed output tests
* working on blocks tests
* fixed test blocks
* cleanup
* merged
* unrender
* add article
* formatting
* fixed render()
* added demo
* formatting
* merge main
* formatting
* cleanups
2022-04-28 01:51:54 -07:00
pngwn
f85686975e
Optional labels fe ( #1105 )
...
* optional labels
* added prop
* Added IOComponent class
* get component fix
* fixed component function
* fixed test components
* formatting
* fixed output tests
* working on blocks tests
* fixed test blocks
* cleanup
* respect show_label prop in all components
* Update ui/packages/app/src/components/File/File.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update ui/packages/app/src/components/Audio/Audio.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update ui/packages/atoms/src/BlockLabel.svelte
* foirmatting
* formatting again
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-27 11:47:15 +01:00
pngwn
2b0898b9a2
Scroll to output ( #1077 )
...
* implement loader + scroll into view
* changes
* refactor components to use Block inside the app
* cleanup
* cleanup
* implement all changes for all changes for all relevant components
* fix formatting
* demos
* add status tracker to every component
* fix tests
* fix unti test flake: randInt
* cleanup CI
* fix CI
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-26 15:48:39 +01:00
Radamés Ajna
9ecb5e8a49
Enable vertex colors for OBJs files ( #1074 )
...
configure Babylon.js OBJ loader to enable vertex colors
2022-04-26 14:03:09 +01:00
Ömer Faruk Özdemir
c892c74cb6
inputless-interfaces ( #1038 )
...
* inputless-interfaces
- enable inputless or outputless interfaces
* inputless-interfaces
- tweaks
2022-04-22 15:29:26 +03:00
pngwn
0cecff4672
Form layout ( #1054 )
...
* implement form grouping
* demo to showcase form groups
* cleanup
* apply tw classes for custom classes
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
* fix formatting
* ignore index.html
* fix gitignore
* fix gitignore
* fix gitignore
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-04-22 10:19:59 +01:00
Abubakar Abid
4c1c735399
Running, testing, and fixing demos ( #1060 )
...
* fixing demos
* fixes
2022-04-21 18:33:23 -07:00
aliabid94
9a62b25bbb
fix ( #1046 )
...
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-04-20 21:43:14 -07:00
Abubakar Abid
161a7a8472
Small fixes to the demos ( #1030 )
...
* updated PyPi version to 2.9.0b
* added to init
* moved media_data
* formatting
* updated PyPi version to 2.9.0b2
* default selected
* deprecated keyvalues
* fixed a few small issues
2022-04-20 14:57:45 -07:00
Dawood Khan
76eab3f9ce
Plot fixes ( #1044 )
...
* matplotlib and warning fix
* fix matplotlib demo
2022-04-20 15:14:46 -04:00
Dawood Khan
c480fb0e0c
Model3D Examples fixes ( #1035 )
...
* fix examples
* fixes
* fix moddl3d examples
* format fixes
* fixed tests
* fix tests
* fix clearColor null
Co-authored-by: Dawood Khan <dawoodkhan@DawoodsWorkMBP.localdomain>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-20 11:43:21 -04:00
Ömer Faruk Özdemir
9cd4c3121f
textbox-autoheight ( #1009 )
...
* textbox-autoheight
- add max-lines to textbox
* textbox-autoheight
- reformat
* textbox-autoheight
- add demo
* textbox-autoheight
- tweaks on scripts
* textbox-autoheight
- fix tests
* textbox-autoheight
- fix tests
* textbox-autoheight
- fix tests
* textbox-autoheight
- convert default max_height from 100 to 20
* textbox-autoheight
- convert default max_height from 100 to 20
2022-04-20 14:25:47 +03:00
Ali Abid
c15885f0cc
merge master
2022-04-19 00:22:43 -07:00
Dawood Khan
499f106c9e
Model3D + Plot Components ( #1010 )
...
* add model3D
* model3d component
* add plot component
* format
* ingnore plot.svelte from prettier
* update build script
* update circleci config
* remove circleci config change
* change build script
* remove change to build script
* remove plot.svelte
* remove duplicate save_flagged func
* fix node space issue + format issues
* Update ui.yml
* Update ui.yml
* Update ui.yml
* remove changes to config files
* updated codecov version
* Update ui.yml
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-18 15:26:30 -04:00
aliabid94
1c2f430a7e
Progress indicator bar ( #997 )
...
Create Status Tracker component to report progress on function calls
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-04-15 02:20:19 -07:00