Commit Graph

62 Commits

Author SHA1 Message Date
Freddy Boulton
e0a55df7dc
Modify CI to check for unused imports (#2555)
* Add lint script + remove unused imports

* Add lint file to sc
2022-10-28 10:56:18 -04:00
Ofek Lev
f43481c18a
Update package metadata (#2226)
* Update package metadata

* address review
2022-09-14 17:39:46 -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
74d632eab5
Add python-3.7 tests (#1818)
* 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
2022-07-19 10:48:46 -04:00
Freddy Boulton
9918a9540b
Mark tests as flaky and run in separate job (#1735)
* Mark tests as flaky and run in separate job

* Fix typo

* Fix typo

* Add test type to config

* Add quotes

* Rename job to test

* Rename job to test
2022-07-11 13:20:11 -04:00
Freddy Boulton
057239b1d3
Use requirements.txt to specify dependencies. Delete egg-info (#1669)
* Use requirements.txt

* Fix checksum in circleci

* Ignore egg info dir

* Install from requirements.txt

* Install gradio

* Use importlib instead of pkg_resources
2022-07-04 06:57:12 -07:00
Ömer Faruk Özdemir
2de9ee8bfb
update-shortcut-syntax (#1234)
* update-shortcut-syntax

- fix&update gr.component
- create a demo introducing shortcuts within Blocks

* update-shortcut-syntax

- tweaks

* update-shortcut-syntax

- tweaks

* update-shortcut-syntax

- fix formatting

* update-shortcut-syntax

- tweaks
- fix tests

* update-shortcut-syntax

- tweaks
- fix tests

* update-shortcut-syntax

- tweaks
- fix tests
2022-05-13 09:30:11 +03:00
pngwn
87dcdd7134
pin to pnpm 6 for now (#1147) 2022-05-02 12:27:26 +01:00
pngwn
665a15c44a
tweak node circleci settings (#1091)
* tweak node circleci settings

* tweak node circleci settings

* update node orb to latest
2022-04-27 02:05:50 +01:00
Abubakar Abid
2f771e201a update codecov version 2022-04-18 11:22:45 -07:00
Ömer Faruk Özdemir
dac4caa25c blocks-components-test
-  add ffmpeg installation to circleci
2022-04-05 23:48:32 +03:00
Ömer Faruk Özdemir
16ca4609e8 blocks-tests
- move formatting checks before tests
2022-03-29 19:18:27 +03:00
pngwn
37c8ee3974
use ui for frontend (#589)
* add static src to modify sketch

* add themes

* update all tooling to use the new frontend dir

* revert formatting

* update template index

* fix formatting

* fix scripts for new ui folder

* remoce console.logs

* remoce console.logs

* ensure dataeries clear works correctly

* ensure label chart has correct width

* remove cropper when component is destroyed

* update tailwind

* remove console logs

* fix formatting

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-02-10 19:22:22 +00:00
Ömer Faruk Özdemir
4c5e116709 Format-The-Codebase
- add a format script
- solve a conflict between flake8 and black
2022-02-10 11:12:26 +03:00
Ömer Faruk Özdemir
972c66e09b Format-The-Codebase
- solve the flake8 warnings
2022-02-09 22:52:26 +03:00
Ömer Faruk Özdemir
6a77a30a4a Format-The-Codebase
- solve the conflict between black and isort
2022-02-09 17:32:43 +03:00
Ömer Faruk Özdemir
0dc920b36f Format-The-Codebase
- format the code-base
2022-02-09 14:55:18 +03:00
Ömer Faruk Özdemir
4f49ea0018 Format-The-Codebase
- add venv activation before formatting checks
2022-02-09 13:37:25 +03:00
Ömer Faruk Özdemir
3c163f58c4 Format-The-Codebase
- move formatting checkers after tests
2022-02-09 11:08:01 +03:00
Ömer Faruk Özdemir
b9e5950bce Format-The-Codebase
- fix circleci config
2022-02-09 11:07:08 +03:00
Ömer Faruk Özdemir
87d7fbee61 Format-The-Codebase
- format the codebase
- add format checkers to circleci
2022-02-09 10:40:05 +03:00
Ömer Faruk Özdemir
75a4bb95cb Accelerate-Tests
- remove pytest options from circleci config to prevent raising error
2022-02-09 09:18:46 +03:00
Ömer Faruk Özdemir
82cb2de626 Accelerate Tests
- add coverage to the circleci
- combine the divided tests into single folder
- update requirements
2022-02-09 08:50:00 +03:00
Ömer Faruk Özdemir
a44e9c3dce Accelerate Tests
- fix circleci config.yml
2022-02-08 22:17:12 +03:00
Ömer Faruk Özdemir
8e9322986d Accelerate Tests
- add only pytest to the circleci for testing it
2022-02-08 20:35:11 +03:00
Ömer Faruk Özdemir
cbb0a8d79c Accelerate Tests
- add only pytest to the circleci for testing it
2022-02-08 20:23:59 +03:00
Ömer Faruk Özdemir
91d09b15ea Accelerate Tests
- add only pytest to the circleci for testing it
- add more filtering to pytest scripts
- add pytest-cov to reqs
2022-02-08 19:56:58 +03:00
Ömer Faruk Özdemir
a502c94a99 Accelerate Tests
- Change unittest with pytest in circleci config.
2022-02-08 19:40:56 +03:00
Ömer Faruk Özdemir
709c93ee03 Use requirement installation script in circleci installations to have single requirements list. 2022-02-04 15:23:11 +03:00
Abubakar Abid
82cea220fa added flagging tests 2022-01-25 23:44:41 -06:00
Abubakar Abid
de64323e20 update circleci version 2022-01-09 23:58:57 -06:00
Abubakar Abid
75dbe00996 update circleci version 2022-01-09 23:57:11 -06:00
Abubakar Abid
77998232b0 added remaining pipelines 2021-12-20 17:59:07 -06:00
Abubakar Abid
95147d859e continued working on pipelines 2021-12-20 16:04:37 -06:00
Abubakar Abid
89df017c87
Update config.yml 2021-11-12 09:19:15 -06:00
aliabd
01c9178a53 adding scikit image for interpretation tests 2021-11-02 13:29:24 -07:00
Ali Abdalla
9bf16c2211
Adding API docs to all interfaces (#309)
* api view with basic html

* added base docs for raw inputs/outputs

* reading correct url from frontend

* styling

* fill in the blank request snippet

* post a request from docs

* post button and random generator

* styling

* added view the api to interface

* style changes

* corrected input output docs

* prefill with example instead of random

* added curl and javascript syntax

* removed scrollbars

* API doc fixes

* added correct docs to all pre/post processing methods

* updated to new doc style

* live demo with sample inputs

* fixing golden screenshots

* correct timeseries preprocess doc

* correct timeseries preprocess doc

* correct timeseries preprocess doc

* fixed overwrite issue

* remove static from git

* fix merge

* fix tests

* fix tests

* fix tests

Co-authored-by: Ali Abid <you@example.comgit>
2021-10-27 11:49:14 -07:00
Ali Abid
ce57665ffe fix tests to include node 2021-10-26 16:58:47 +00:00
Ali Abid
55409a8b2b fix tests; support node frontend building 2021-10-25 20:41:03 +00:00
Abubakar Abid
eb7bc8f98e added codecov 2021-10-13 23:18:33 -05:00
Abubakar Abid
5879be23e4 removed worfklow 2021-10-13 23:11:51 -05:00
Abubakar Abid
cc07a12755 removed worfklow 2021-10-13 23:09:24 -05:00
Abubakar Abid
e5149676ae removed worfklow 2021-10-13 23:08:50 -05:00
Abubakar Abid
bb813c04f3
Update config.yml 2021-10-13 23:06:40 -05:00
Abubakar Abid
8d9bbdb60b
Update config.yml 2021-10-13 23:05:40 -05:00
Ali Abid
a78635aff3 fix tests 2021-08-17 18:42:30 +00:00
Ali Abid
54161827e0 make gitignore changes and test fix 2021-08-11 18:44:35 +00:00
Ali Abid
d0edd2e7f0 make gitignore changes and test fix 2021-08-11 18:39:32 +00:00
Ali Abid
667fe99a9a make gitignore changes and test fix 2021-08-11 18:31:37 +00:00
aliabd
c4611eecac removed browser tools 2021-05-24 02:25:45 -04:00