Alina Rogalska
2e54471610
Fix cached examples encoding ( #2974 )
...
* Fix encoding when loading cached examples
* Format backend
* Add changes to CHANGELOG
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 00:16:46 -08:00
Tasha Upchurch
94c9512df9
the original demo would fail after switching to the 3rd tab once, by … ( #2971 )
...
* the original demo would fail after switching to the 3rd tab once, by not returning to it again when directed to.
it appears that somewhere in tabs, that selected is not being updated when a tabitem is selected.
* Changelog + notebooks:
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-01-13 13:41:53 -05:00
Abubakar Abid
6a3c8d3fdf
Bring back change event for Dropdown ( #2954 )
...
* bring back change
* changelog
* changelog
* changelog
2023-01-08 13:09:40 +01:00
Anton Lozhkov
981cd1ea68
Fix the path check for long CSS strings in Blocks ( #2953 )
...
* Fix the path check for long CSS strings in Blocks
* Add a test
* Update changelog
2023-01-08 06:31:21 -05:00
Freddy Boulton
1dcacdb6c9
Fix bug in mount_gradio_app with queue enabled ( #2939 )
...
* Move to __exit__
* Add test
* Add unit test
* Add changelog
* fix test
* Fix test
* Fix Release notes
2023-01-08 05:42:57 -05:00
github-actions[bot]
d229654673
New Version Docs ( #2952 )
...
* [create-pull-request] automated change
* tweak
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-08 10:39:33 +01:00
aliabid94
13fd9f35e1
Hotfix audio output, HighlightedText skip ( #2950 )
...
* changes
* fixes
* changes
2023-01-07 22:26:19 -06:00
Freddy Boulton
b3dc6f5574
Fix changelog typo ( #2938 )
2023-01-05 12:37:17 -05:00
github-actions[bot]
5fc487cdfe
[create-pull-request] automated change ( #2934 )
...
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-01-05 11:49:05 -05:00
Ali Abdalla
1ae01b2005
Optimize images and gifs ( #2922 )
...
* convert gifs to html video
* optimize images
* changelog
2023-01-05 16:49:53 +02:00
aliabid94
325ba0df2b
changes ( #2933 )
2023-01-04 21:39:58 -06: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
Abubakar Abid
c02001da7d
Final typing: interpretation.py
and helpers.py
( #2911 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* interface.py
* attempt fix
* refactoring interface
* interface refactor
* formatting
* fix for live interfaces
* lint
* refactor interpret
* more typing
* undo blocks change
* undo test comp change
* created classes
* interpretation
* fix
* final fixes to interpretation
* type check
* helpers
* type hintg
* label
* initialize interpret
* fixed progress bar
* removed unnecessary assertion
2023-01-04 14:30:21 -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
Freddy Boulton
92797fd486
Fix File Downloading ( #2926 )
...
* Fix + test
* Changelog
2023-01-04 12:18:04 -05:00
Freddy Boulton
53fa517480
Use gradio-pr-bot to make notebook check comments on PRs ( #2925 )
...
* Add new workflow files
* Fix spacing
* Indent
* Single quotes
* indent
* Single quotes
* Reorder steps
* Only comment once
* Comment if true
* Use v2
2023-01-04 10:51:16 -05:00
Freddy Boulton
f0727b9192
Deploy PRs from forks to spaces ( #2895 )
...
* store secrets in other repo
* Fix typo
* Use separate job
* trigger
* trigger
* trigger
* trigger
* Set up dependency
* Rename
* Close quotes
* empty
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* empty trigger
* Add files
* CHANGELOG + rename workflow
* Remove echo and use repository owner
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-03 14:24:01 -05:00
Abubakar Abid
38c64a5b0e
More typing! ( #2906 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* interface.py
* attempt fix
* refactoring interface
* interface refactor
* formatting
* fix for live interfaces
* lint
* mix
* mix
* serialize fix
* formatting
* all demos queue
* networking
* added type check
* processing_utils
* more typing
* formatting
* type ignored processing utils
* s
* tunneling
* add interpretation
* more typing
* queuing
* serializing
* undo interpretation
* routes.py
* formatting
* component type
* addressed review
* lint
* typing
* documentation
* fixing pydantic
* routes
* fixed typing in routes
* fix tests
2023-01-03 13:13:11 -05:00
Pradyumna Rahul
6a6e9175e1
Updating typing in utils.py
and templates.py
( #2904 )
...
* typing
* typing
* typing
* updated CHANGELOG.md
* typing
* typing
* typing
* typing
* Update max_args count to be -1 if positional param type
max_args would be set to the value of "infinity" when the param was of VAR_POSITIONAL type. That makes max_args hold both int and string values.
Updated the max_args to be set to -1 value.
* Updated to use same response and not previous response for validation
* Keep self._response uninitialized
* Updated to use empty BaseModel when not validation_model not present
* Reference `BlockContext` directly
* initializing end as 0 in format_net_list
* Updating docs for error_analytics
* Update file version check in utils
* Update gradio.strings import
* typing
* typing
* typing
* typing
* typing
* typing
* typing
* typing
* typing
* typing
* Add utils.py and templates.py to type check script
* fixed changelog
* Update formatting of utils.py
* rerun ci
* flagging fix
* fix typing
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-03 12:20:02 -05:00
Ali Abdalla
d77b0702d1
Add a components - events matrix on the docs ( #2921 )
...
* add components events matrix
* changelog
2023-01-03 17:45:09 +02:00
aliabid94
58b1a074ba
Add Progress Bar component ( #2750 )
...
* changes
* version
* changes
* fixes
* changes
* changes
* changes
* changes
* chagnes
* chagnes
* fix
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* version update
* Commit from GitHub Actions (Upload Python Package)
* changes
* changes
* changes
* fix
* changes
* changes
* changes
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* changes
* changes
* changes
* changes
* change
* changes
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/routes.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* change
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: GH ACTIONS <aliabid94@users.noreply.github.com>
2022-12-30 11:45:54 -08:00
Abubakar Abid
d46f0cd1ed
Refactored interface.py
( #2902 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* interface.py
* attempt fix
* refactoring interface
* interface refactor
* formatting
* fix for live interfaces
* lint
* serialize fix
* formatting
* all demos queue
* added type check
* formatting
2022-12-29 15:30:44 -05:00
Abubakar Abid
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
Abubakar Abid
09ebf00332
Timeseries hotfix ( #2905 )
...
* time series hotfix
* formatting
* formatting
2022-12-29 14:21:29 -05:00
Abubakar Abid
a3d0fcfab1
Added typing to more files ( #2896 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
2022-12-29 12:33:12 -05:00
Felix Dombek
5c108458aa
Fix "audio used before assigned" bug ( #2898 )
...
* Fix "audio used before assigned" bug
audio_from_file did not correctly handle the case where the file cannot be opened. This PR fixes e.g. the crash mentioned in [TheAlly's Riffusion tutorial](https://theally.notion.site/theally/Quick-n-Dirty-Riffusion-txt2audio-Tutorial-18e57df9ef214c3280efc5998bbf774d ).
* Update CHANGELOG.md
* Output helpful message about ffprobe
* Output error message
* Raise chained RuntimeError with full description
* Fix indentation
* Fixed spacing
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-12-29 09:06:18 -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
Abubakar Abid
9cce57e14d
isort
2022-12-27 19:23:53 -05:00
Abubakar Abid
de0c41c1c4
Enforcing typing in blocks.py
and context.py
( #2887 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
2022-12-27 16:54:47 -05:00
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
Abubakar Abid
e3434dd4cb
Add reference to Gradio Discord bot to README ( #2891 )
...
* Add reference to Gradio Discord bot to README
* Update README.md
2022-12-27 11:25:17 -05:00
Freddy Boulton
6b77ea07d3
Fix bug displaying dataframe examples in csv/tsv files ( #2877 )
...
* Use loaded value for dataframe preview
* Add to CHANGELOG
* Changelog
2022-12-27 10:48:32 -05:00
Jay Smith
571e5eb66c
Correct message when is_generating hits 500 code ( #2889 )
2022-12-27 10:31:27 -05:00
Mohamed Rashad
21820f47ab
Add title to TabbedInterface
( #2888 )
...
* Add title to `TabbedInterface`
* Add title to the header of interface
* Add the new title feature to changelog
2022-12-26 19:52:33 -05:00
Abubakar Abid
88c9206159
Hotfix for tests related to #2721 ( #2886 )
...
* fixes
* formatting
2022-12-26 14:53:07 -05:00
Jean Ribeiro
24f413c4b3
enhancement: record audio and video from webcam simultaneously ( #2721 )
...
* Recording Audio and Video from webcam simultaneously
* Add include_audio option in Video component
* Update gradio/components.py
Co-authored-by: pngwn <hello@pngwn.io>
* Update CHANGELOG.md
Co-authored-by: pngwn <hello@pngwn.io>
* updated include_audio default behavior
Co-authored-by: Mandar Gogate <9411881+MandarGogate@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-12-26 13:56:17 -05:00
Abubakar Abid
066adf1a9d
Google Sheets + LinePlot Guide ( #2816 )
...
* draft
* guide
* add guide
* changelog
* changelog
* addressed comments
2022-12-23 10:40:52 -06:00
Freddy Boulton
1765cf68ae
Make it so that default_enabled has no impact on queue behavior ( #2876 )
...
* Deprecate default_enabled + test
* CHANGELOG
* Remove docstring for deprecated param
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-21 16:11:20 -05:00
aliabd
db83055108
fixed constructor
2022-12-21 21:20:21 +04:00
github-actions[bot]
77f29401f3
[create-pull-request] automated change ( #2875 )
...
Co-authored-by: freddyaboulton <freddyaboulton@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2022-12-21 20:57:19 +04:00
Ali Abdalla
a31f95580a
Redirect old links to specific hash ( #2874 )
...
* redirect old links to specific hash
* remove trailing slash
2022-12-21 20:46:19 +04:00
Abubakar Abid
474b88af52
Removes the share warning msg and upgrades to gradio==3.15.0
( #2870 )
...
* removed share msg
* update version
* Add next section to changelog
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2022-12-21 11:33:28 -05:00
Ali Abdalla
9893166830
Fix css glitch and navigation in docs ( #2856 )
...
* fix css and navigation
* update changelog
* format backend
* fix css glitch in 3.14 docs
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-21 19:11:18 +04: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
Ali Abdalla
57b6fb2013
Update website README.md with correct instructions on how to build website ( #2858 )
...
* fixes to readme
* removed unnecessary section
2022-12-21 18:41:02 +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
943b4ed77a
Wrap value in list for CheckBoxGroup. ( #2866 )
...
* Value error
* Add test
* Wrap value
* CHANGELOG
* Re-enable Example pagination on the front-end (#2861 )
* Pass samples_per_page to examples
* Add to changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Value error
* Add test
* Wrap value
* CHANGELOG
* Update docstrings
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-20 18:02:18 -05:00
Freddy Boulton
ed2781d8d7
Re-enable Example pagination on the front-end ( #2861 )
...
* Pass samples_per_page to examples
* Add to changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-20 17:10:23 -05:00
Abubakar Abid
612ab0539e
Fixed loading Spaces that have components with default values ( #2855 )
...
* fixed load space default values
* changelog
* formatting
* tweak
* fix tests
2022-12-20 15:38:02 -06:00
Abubakar Abid
0879f0a296
Fixes flagging when allow_flagging
is set to "auto" ( #2695 )
...
* flagging fix
* formatting
* changelog
* auto
* auto
2022-12-20 15:27:14 -06:00