aliabid94
6798ea38d7
Cleanup colab ( #2612 )
...
* changes
* changes
* changes
* changes
* Update gradio/strings.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-18 09:58:34 -08:00
Abubakar Abid
1c244cc342
pass in kwargs to Blocks.load()
( #2669 )
...
* pass in kwargs to Blocks.load()
* added test
* changelog
2022-11-17 17:22:16 -08:00
Abubakar Abid
1e9781cf0f
Update CHANGELOG.md ( #2664 )
2022-11-17 08:59:48 -08:00
Freddy Boulton
8d59c1480e
More demo fixes ( #2656 )
...
* Minor tweaks
* Fix gr outputs
* Fix changelog
2022-11-16 15:42:24 -05:00
Abubakar Abid
8ec0a1e2b8
Quick fix to gr.utils.validate_url
( #2659 )
...
* fix validate
* formatting
* fix tests
* added flaky mark
2022-11-16 12:21:51 -08: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
e6336d6882
Fix bug with gr.update and interactive=True ( #2639 )
...
* Fix update interactivity
* Lint
* CHANGELOG
* Fix
* Undo interactive=True
* Do not call update twice
* Add unit test
* Revert change
* Lint
2022-11-15 11:53:35 -05:00
Freddy Boulton
ebb65eb9ee
Fix loading interface with examples ( #2640 )
...
* fix examples
* Fix test
* Add unit test
* Add CHANGELOG
* Add unit test where load external
* fix for older demos
* Add comment
2022-11-15 11:20:59 -05:00
Freddy Boulton
06353ca939
Pin fastapi test version to 0.87.0 ( #2647 )
...
* Pin fastapi test version
* trigger ci
* Upgrade to 0.87
* Update txt file
2022-11-14 14:31:03 -05:00
pngwn
fd31726666
only use min height for md and html when loading ( #2623 )
2022-11-09 20:48:17 +01:00
Freddy Boulton
e9a8a85929
Remove duplicate line from changelog ( #2624 )
2022-11-09 04:43:29 -05:00
Vladimir Repin
23e6fe6bc5
Put the changelog note in the 3.9 release section ( #2620 )
...
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-11-09 04:35:42 -05:00
GLGDLY
b75b7b7475
Allow auth with using queue ( #2611 )
...
* Update queue.py
* Update queue.py
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update queue.py
* Update requirements.txt
websockets with version <=9.1 with raise TypeError: WebSocketCommonProtocol.__init__() got an unexpected keyword argument 'logger'
* fix issues after rebase
* feat Allow auth with using queue
* remove unused imports
* Update CHANGELOG.md
fix wrong position in changlog from the last pr #2428 also
* revert test_queue_enabled_for_fn that is changed due to unintended mistake
* remove comment
* update tests and merge main thread
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-11-09 04:24:51 -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
Abubakar Abid
010827e211
Refactoring to replace unittests with pytests ( #2610 )
...
* replace pytests with unittests
* formatting
* test blocks
* fixed test/blocks
* test components
* working on test components
* test components
* test components almost fixed
* removed unittest
* linting
* fix remaining tests
* lint
* formatting
* changelog
2022-11-08 01:37:55 +01:00
Abubakar Abid
05dcd87053
A Guide on Configuring a Gradio Queue for High-Volume Traffic ( #2558 )
...
* renamed guides and created new guide
* changelog
* more
* more text
* conc
* conc
* max performance
* guide
* finish guide
* guide
* tweaks
* tweaks
* guide
* guide
2022-11-05 18:36:46 -07:00
GLGDLY
b1cc5be78d
Update queue with using deque & Update requirements ( #2428 )
...
* Update queue.py
* Update queue.py
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update queue.py
* Update requirements.txt
websockets with version <=9.1 with raise TypeError: WebSocketCommonProtocol.__init__() got an unexpected keyword argument 'logger'
* fix issues after rebase
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-11-04 16:53:23 -04: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
Abubakar Abid
218fb9fa65
Allow gr.Templates
to take in arguments ( #2600 )
...
* template customization
* changelog
* fixes
* import
* added test
* formatting
* explicit parameters
* updated changelog
* fix typing
* fix test
2022-11-04 09:08:17 -07:00
Freddy Boulton
85e5fd0f62
Fix changelog 3.9 ( #2605 )
2022-11-04 11:08:06 -04:00
aliabid94
91abb3ae11
Allow gradio embeds in colab without share ( #2455 )
...
* changes
* change
* changes
* changes
* changes
* Update colab.html
* update version
* changes
* Update gradio/templates/colab.html
Co-authored-by: pngwn <hello@pngwn.io>
* changes
* changes
* changers
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* revert
* changes
* changes
* changes
* strings
* formatting
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2022-11-03 15:51:30 -07:00
Abubakar Abid
43f5cf5f30
Load example from external Spaces ( #2594 )
...
* started
* loading examples
* saves
* fixes
* formatting
* iocomponent
* added support to other components
* fixed tests
* added video support
* added 1 test
* more changes
* reverted components.py
* remaining components
* formatting
* fixes
* fixes
* tests
* fixed ability to load multiple spaces
2022-11-03 12:35:56 -07:00
Vladimir Repin
ad62a8a8a3
Fixed upload dialog being showed after pressing "x" button ( #2577 )
...
* Fixed upload dialog being showed on clear #2476
* Changelog update
* Formatting fix
* click replaced with disable_click
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2022-11-02 16:28:38 -07: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
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
f0d1cdf08f
Allow None in as_example for files ( #2588 )
...
* Fix file examples
* Changelog
* Fix changelog version name previous release
2022-11-01 17:36:38 -04:00
Abubakar Abid
e360f159a9
Add support for loading Private Spaces using HF Token ( #2568 )
...
* pass token & add typing
* updated docstring
* reorg
* improve docs
* test for private space
* changelog
* addressing review
* fix tests
* fix websocket headers
2022-10-31 20:29:13 -07:00
pngwn
17cd9b59bd
fix embed protocol ( #2571 )
...
* fix embed protocol
* changelog
* version
* Commit from GitHub Actions (Upload Python Package)
* version
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: GH ACTIONS <abidlabs@users.noreply.github.com>
2022-10-31 12:08:45 -07:00
pngwn
36e383a9f0
fix spaces ( #2567 )
...
* fix spaces
* changelog
* tweak
* only mess with ws url in embed mode
* version
* always disregard embedding apps path when embedding
* version
* version
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-30 07:39:27 -07: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
Ali Abdalla
a9f6d53016
changelog update ( #2564 )
2022-10-28 15:53:25 -04:00
Freddy Boulton
3ca5d4fe95
Release 3.8 ( #2561 )
...
* Release 3.7.1
* Update release number
2022-10-28 11:35:04 -07: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
Dawood Khan
28b7d7de8f
fixes plotly whitespace ( #2548 )
...
* fix plotly whitespace
* changelod
2022-10-27 16:12:21 -04:00
camenduru
cf7d44591f
fix #2536 ( #2538 )
...
* fix #2536
thanks @pngwn
* fix #2536
* fix #2536
* changelog
Co-authored-by: pngwn <hello@pngwn.io>
2022-10-27 14:57:39 +01:00
Ali Abdalla
be4bedbc5e
temporary changelog update ( #2546 )
2022-10-26 21:23:43 -04:00
Abubakar Abid
76512378a8
Adds support for audio samples in float64
, float16
, or uint16
formats ( #2545 )
...
* fixed audio
* added some unit tests
* formatting
* formatting
2022-10-26 16:24:46 -07:00
Abubakar Abid
5c80b544ab
Better error messages ( #2543 )
...
* events fix
* changelog, format, better error msg
* changelog
* changelog
* mix errors
* formatting
* switched from error to warnings
* typo
2022-10-26 16:10:26 -07:00
Freddy Boulton
099e1e84ec
Properly dequeue cancelled events when multiple apps are rendered ( #2540 )
...
* Fix render + tests
* Add comment + changelog
2022-10-26 16:29:47 -04:00
Abubakar Abid
933feb48ad
Remove special ws path for spaces ( #2528 )
...
* remove special ws path for spaces
* changelog
2022-10-26 12:55:32 -07:00
Dawood Khan
83a038ea7a
Load Event Trigger ( #2456 )
...
* load event
* fixes
* reformat
* changelog fixes
* rename to uploadable
* formatting
* format
* add cancels
* Update CHANGELOG.md
* Create CHANGELOG.md
* Update CHANGELOG.md
* add batch
2022-10-25 20:58:12 -04:00
pngwn
5a090de94a
prevent invalid targets of events from crashing app ( #2534 )
...
* add sourcemaps to build
* logs
* filter falsey values from target_instance map
* actually fix it this time
* changelog + cleanup
* format
2022-10-26 00:57:13 +01:00
Abubakar Abid
560b3f99c0
Fixes cancels to work with multiple blocks ( #2530 )
...
* fixes cancels to work with multiple blocks
* formatting and changelog
* formatting and test
* skip test in 3.7
2022-10-25 14:54:33 -07:00
Freddy Boulton
7f9223fdbe
Prevent api requests from skipping queue ( #2493 )
...
* Prevent request to rest api from skipping queue
* Release notes
* Make changes to show_api
* Update gradio/blocks.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-25 11:45:15 -04: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
0e168c4dff
Batching ( #2218 )
...
* batch
* formatting
* added parameter
* batch
* added docstrings
* correct arguments
* docstring
* adapt process_api for batch
* backend
* __call__
* more regular tests
* formatting
* cleaning up blocks.py
* __call__ works
* api route works
* first attempt at queue
* fixing tests
* fix some tests
* formatting
* removed print
* merge
* queue works!
* removed batch timeout
* removed batch timeout
* updated documentation
* fixing tests
* fixing tests
* fixing queue tests
* fixing queue tests
* formatting
* fix blocks config
* fix tests
* update documentation
* updated tests
* blocks
* blocks
* blocks
* tests
* test fixes
* more tests
* faster
* foramtting
* test fixes
* dataclasses
* fix
* revert to fix test
* fix
* fix test
* formatting
* fix tests
* refactoring examples
* formatting
* changelog
* fix examples
* formatting
* fix tests
* formatting
* catch error
* formatting
* fix tests
* fix cancel with batch
* final tests and docs
* test routes
* formatting
2022-10-24 16:32:37 -07:00
Dawood Khan
834d945b1a
Fixes plotly css issues ( #2486 )
...
* fix plotly css
* changelong
2022-10-24 11:13:41 -04:00
Rahul Varma
a18099f683
Allow render() to return self ( #2514 )
...
* Update blocks.py
Updated render() function in Blocks to return self
* Update CHANGELOG.md
* formatting
* fix changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-23 05:59:15 -07:00
Abubakar Abid
1dd4231778
Fix share error message when files are built locally ( #2502 )
...
* fix share error message
* changelog
* formatting
2022-10-19 19:55:14 -07:00
Freddy Boulton
9840e87e82
Manually format changelog ( #2495 )
2022-10-18 16:41:24 -04:00