* 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>
* 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
* 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
* 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
* 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>
* work on saving flags in JSON format
* explained what I did more clearly
* final updates + added test case
* reviews to flagging.py for HuggingFaceDatasetJSONSaver
* formatted imports
* used uuid for random ids
* used uuid for random + function to get dataset infos
* reformmated flagging.py
* fix examples test
* formatting
* async examples
* working on mix
* comment out failing test
* fixed interface problem
* final updates to HuggingFaceDatasetJSONSaver flagging.py
* final updates to HuggingFaceDatasetJSONSaver flagging.py
* formatting
* some tweaks
* tweaks
* tweaks
* omar's fixes
* added back test.init
* restored test init
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* async-interface-fix
- support async in interface with workarounds
- make mix.Parallel async and concurrent
* async-interface-fix
- fix & tweaks
* fix interpretation
* async-interface-fix
- fix mix
* async-interface-fix
- fix tests
- tweaks
* async-interface-fix
- take TODO notes on interface related to refactoring
* async-interface-fix
- fix test_mix
* async-interface-fix
- test create_app
* fix series
* fix series
* reformat
* fix interface test
* - fix tests by moving them async
* - bypass the test
* - bypass the test
* - bypass the test
* - bypass the test without closing it
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* always return data/headers from dataframe postprocess
* add demo back
* handle case of no new headers but different length list
* fix tests
* change
* change
* added unit tests
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Add python-3.7 tests
* Format components
* Use latest images
* Use python instead of python3
* Force reset cache
* Reset cache
* Use Ipython 7 for python 3.7 support
* Install chrome
* Add two text files
* Reset cache
* Use Literal from typing extensions
* Update cache key
* Linting
* Fix requests tests
* Exit if running from wrong python version
* Use one requirements file
* Fix comment
* Fix comment
* Use python 3.7.13
* empty commit
* Delete chrome driver to see if it works
* Test no chrome with new cache
* Remove chrome driver install entirely
* allow data frame to change number of columns
* allow data frame to change number of columns
* fix types
* fix tests
* handle case when headers are not present
* fix tests
* fix tests finally
* reinstate demo
* address review comments
* tweak test for fix