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