Commit Graph

4468 Commits

Author SHA1 Message Date
Abubakar Abid
1dd4d34933
Updates the documentation to better describe Blocks.load() (#2413)
* updated doc

* removed link change

* revert changes to inner html

* changelog

* tweaks

* formatting
2022-10-07 14:38:59 -07:00
Freddy Boulton
da93f4f004
Use async iteration for progressive outputs (#2409)
* Use async iteration

* Changelog

* Format + comment

* Changelog

* Use AsyncStopIteration

* Remove unused import
2022-10-07 17:12:07 -04:00
pngwn
996cd8b814
1711 image upload (#2410) 2022-10-07 19:21:21 +01:00
pngwn
8f43b6218b
add option to control page title, default to false (#2400)
* add option to control page title, default to false

* changelog

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-07 15:32:40 +01:00
Freddy Boulton
7305a19a30
Fix embedded demos in some guides (#2403)
* Dont load gradio web component in guides

* Changelog
2022-10-07 10:08:14 -04:00
phi
a36dcb5975
Resolve Gallery base64 representation issues (#2265) 2022-10-07 06:08:30 +01:00
Freddy Boulton
2acebe5490
Fix release notes (#2401) 2022-10-06 14:39:48 -04:00
Abubakar Abid
491d7f707c
3.4.1 (#2398) 2022-10-05 18:18:27 -07: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
Dawood Khan
b59c45160d
Clamps values for typeable slider input when out of range (#2380)
* warning for slider type input

* fix value on blur

* remove unnecesary classes

* update changelog

* Update CHANGELOG.md
2022-10-05 14:30:40 -04:00
Freddy Boulton
a03d0ebe7c
Prevent apps from hanging when running in reload mode and error occurs (#2394)
* Fix show_error in blocks

* dd to changelog + test
2022-10-04 16:10:02 -04:00
Abubakar Abid
c3306721a4
Adds ability to disable pre/post-processing for examples (#2383)
* fixing examples

* adding parameters

* postprocess

* examples

* added tests

* changelog

* Update CHANGELOG.md

* added docstrings

* Adds ability to provide a `gr.update()` dictionary even if `postprocess=False`  (#2385)

* docs

* fixes

* added docs, fixed test

* changelog

* fix suggestoins

* formatting

* fix tests

* fix tests
2022-10-04 12:51:20 -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
Ali Abdalla
ca67384ef1
Copy changelog file in website docker (#2384)
* copy changelog file in website docker

* Update CHANGELOG.md
2022-10-03 13:31:58 -07:00
Freddy Boulton
fb7d768013
Automated Release Notes (#2306)
* add changelog file

* Check release notes

* Fix syntax

* Fix path to changelog

* Use changelog

* Add to changelog

* Add comment

* Test comment

* Use txt file for comment body

* Fix for multiline

* rendering on website, changes to changelog

* Don't use txt file

* Fix pr number

* merge

* Split it up into two

* Test fail

* Follow example

* Fix syntax

* Delete quotes

* Add syntax

* Fix names

* Fix syntax

* Modify pr template instead and remove backticks

* Check word

* changelog file fixes

* add 3.4 release notes to changelog

* add navigation

* replace pr tag and @ usernames with links

* remove empty/unused sections from rendering

* fix format of 3.4 notes

* add releases dir and 3.0-2 notes

* render from releases dir

* remove changelog file

* Fix RN check

* Fix path

* upcoming release title

* switch to periods from dashes

* add link to changelog in docs

* Add script modify files

* Modify changelog

* change to release history

* modify gh actions

* Fix syntax

* Skip draft releases during reformatting

* skip template when rendering

* modify upcoming.md to reflect real changes

* replace links with pr tag

* Add automated release notes as a new feature in upcoming

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* eUpdate website/homepage/src/style.css

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Misc fixes

* one file at root

* Fix Changelog check

* Modify release notes format script

* Fix format script + release notes

* Add to contributing

* Undo change to release notes from testing script

* Add pr 2373 to rl

* Modify file path

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-03 12:36:59 -07:00
Julien Chaumond
91af580b85
[doc] typos (#2373) 2022-09-29 17:21:29 -04:00
Abubakar Abid
0df2c8dd3e
small fixes to image docs (#2372) 2022-09-29 14:07:00 -07:00
Freddy Boulton
40febc3584
Make image_classifier_interface_load runnable (#2365) 2022-09-29 14:47:40 -04:00
Ian González
662a811689
Catch the permission exception on the audio component (#2330)
* Catch the permission exception on the audio component and fail gracefully

* Run autoformatter on src/Audio.svelte

* Revert "Run autoformatter on src/Audio.svelte"

This reverts commit e53af15cdd.

* Run autoformatter

* use gradio error message

* convert to try catch, fix types

* cleanup

Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-09-29 15:33:22 +01:00
Ali Abdalla
ea5fdd0b20
remove the 0 (#2363) 2022-09-28 15:06:46 -07:00
Abubakar Abid
e092b5fa22
version (#2361) 2022-09-28 13:33:46 -07:00
Abubakar Abid
e5a0a5e849
Raise error if Blocks has duplicate component with same IDs (#2359)
* duplicate error

* version

* version

* avoid rendering State twice

* changed error type
2022-09-28 13:29:25 -07:00
Freddy Boulton
3f58434b0f
Fix typo in guide image path (#2357) 2022-09-28 11:24:13 -04:00
Freddy Boulton
b2275dc440
Add guide (#2350) 2022-09-28 11:03:07 -04:00
Abubakar Abid
29f751b84b
removed analytics dependency (#2347) 2022-09-27 11:28:58 -05:00
Freddy Boulton
6f0b4a417e
Create a guide on how to connect an app to a database hosted on the cloud (#2341)
* Add guide for postgres

* Rename

* Incorporate feedback
2022-09-27 12:18:35 -04:00
Abubakar Abid
039ce1266e
3.4 (#2346) 2022-09-27 08:24:29 -05: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
d63b328337
Fix typo in variable name (#2340) 2022-09-26 15:24:33 -04:00
Ian González
027bbc0180
Add docs to blocks context postprocessing function (#2332)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-09-26 10:43:40 -04:00
Ali Abdalla
8ca7f9c43b
Fix Web Tracker Script (#2308)
* fix if condition

* fix logic

* typo
2022-09-23 13:39:01 -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
Dawood Khan
3a4a82634e
Fix: Dataframe column headers are reset when you add a new column (#2318)
* headers fix

* format fix
2022-09-23 13:50:08 -04:00
Abubakar Abid
f8696879af
release 3.4b3 (#2328) 2022-09-23 10:52:04 -05:00
voidxd
f44ed67ea0
Update 2)key_features.md (#2326)
Minor grammar/typo fixes.
2022-09-23 08:26:54 -05: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
Abubakar Abid
581fbabe07
fix clipboard (#2321) 2022-09-22 12:52:14 -05:00
Freddy Boulton
11379b92f1
Respect Upstream Queue when loading interfaces/blocks from Spaces (#2294)
* Fix fn used in load when queue is enabled

* Respect upstream queue

* Fix test

* Skip in 3.7

* Update logic to respect if fn does not have queue

* Fix impl + test
2022-09-21 13:18:40 -04:00
Abubakar Abid
c977ef1fa8
Supports gr.update() in example caching (#2309)
* support for update

* formatting

* testing

* fixes to tests

* fixes to tests

* fix tests

* fix review comments

* Update blocks.py
2022-09-21 11:53:06 -05:00
Freddy Boulton
eaae71fdd1
Don't deploy to spaces on release (#2313) 2022-09-21 12:06:24 -04:00
SkyTNT
0c4b13620e
fix : queue could be blocked (#2288)
* fix: queue could be blocked

* add: send error message

* fix

* fix

* Add tests

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2022-09-20 14:34:08 -04: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
Freddy Boulton
bbd1c7237e
Use max concurrency count in queue (#2286) 2022-09-19 10:03:06 -04:00
Ali Abdalla
5dcc5617ca
Website fixes and refactoring (#2280)
* fix OS specific homepage build

* trailing comma

* refactor all slack notifs to one file

* fix scripts

* fix error notification to return useful errors
2022-09-16 01:23:40 -07:00
Abubakar Abid
dd70a173e4
release (#2271) 2022-09-15 14:14:32 -07:00
Erfan
bff2bb35a2
changed the documentation for background styling (#2275)
* changed the body to .gradio-container #2270

* changed body to .gradio-container #2270

* added a description #2270

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-09-15 11:52:49 -07:00
aliabid94
72c52ebc9f
Attach visible kwarg to all components (#2247)
* change

* remove visible for tabitem

* change
2022-09-15 11:51:18 -07: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