Commit Graph

75 Commits

Author SHA1 Message Date
Abubakar Abid
2fdf26d7ac merged blocks-dev 2022-04-05 12:21:48 -07:00
aliabid94
5c44ae3536
Restore Interpretation, Live, Auth, Queueing (#915)
Restore Interpretation, Live, Auth, Queueing

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-04 15:47:51 -07:00
Abubakar Abid
3e72cfdea0 fixed idempotency issue 2022-04-01 08:21:17 -07:00
Ömer Faruk Özdemir
cf6f490189 blocks-components-tests
- reformat
2022-03-30 15:34:08 +03:00
Ömer Faruk Özdemir
070b8a96b5 blocks-components-tests
- move gradio/test_data to test/test_data/media_data
2022-03-30 13:08:34 +03:00
Ömer Faruk Özdemir
32f0554ebe blocks-components-tests
- reformat
2022-03-29 23:30:45 +03:00
Ömer Faruk Özdemir
c343a622c3 blocks-components-tests
- tweaks
2022-03-29 23:25:34 +03:00
Abubakar Abid
c7299edb94 formatting 2022-03-25 16:53:01 -07:00
Abubakar Abid
04b6b80b33 inputs 2022-03-25 16:50:53 -07:00
Abubakar Abid
6ff3ad2d4a output tests passing 2022-03-25 16:44:13 -07:00
Abubakar Abid
63d18ac02b formatting 2022-03-23 15:50:10 -07:00
Abubakar Abid
6a82b72d56 test_inputs pass' 2022-03-23 14:15:08 -07:00
aliabid94
a8ab1c81a1
Blocks dev (#853)
* Blocks-Components-v2
- default -> default_value refactoring

* Blocks-Components-v2
- refactor output types into output_type and make them auto

* Blocks-Backend-Events
- all events are implemented

* Blocks-Backend-Events
- refactor fn: str -> Callable

* Blocks-Backend-Events
- add change event to TabItem

* Blocks Backend Components
- Remove KeyValues from components

* Blocks-Backend-Components-v2
- Resolve Components imports in inputs and outputs

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- docstring updates

* revert demos

* Blocks-Backend-Components-v2
- tweaks

* Blocks-Backend-Components-v2
- add change event to Tabs

* Interfaces from Blocks (#849)

Build interfaces from blocks

Co-authored-by: Ali Abid <aliabid94@gmail.com>

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-03-22 15:40:36 -07:00
Abubakar Abid
f2a5ecdca6 fixed test inputs.py 2022-03-19 08:14:54 -07:00
Abubakar Abid
db6f8452f1 fixed test data 2022-03-19 07:52:25 -07:00
Abubakar Abid
77eae4534d fixing test inputs 2022-03-18 17:18:06 -07:00
Abubakar Abid
6bcbde43d7 fixing test_inputs.py 2022-03-18 17:08:24 -07:00
Abubakar Abid
7044defcc9 changed external.py to use components 2022-03-18 15:49:38 -07:00
Ömer Faruk Özdemir
b79794a624 Optional-Input-Clarification
- move (optional) labeling to the frontend
2022-02-17 18:34:35 +03:00
Abubakar Abid
1260068e2e fixed tests 2022-02-12 17:38:57 -05:00
Ömer Faruk Özdemir
972c66e09b Format-The-Codebase
- solve the flake8 warnings
2022-02-09 22:52:26 +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
Lysandre
5522fa4d6a Upgrade black to version ~=22.0 2022-02-08 13:56:13 -05:00
Abubakar Abid
19d95c460d Fixed audio tokenization 2022-01-25 16:22:46 -06:00
Abubakar Abid
888c8ee2c8 additional tests 2022-01-24 18:03:52 -06:00
Ömer Faruk Özdemir
cc0cff893f Format The Codebase
- black formatting
- isort formatting
2022-01-21 16:44:12 +03:00
Ali Abid
da7c6c3701 fix tests 2021-12-30 10:45:49 +00:00
Ali Abid
a20871cd7c fix test 2021-12-30 09:41:51 +00:00
Abubakar Abid
9a95387a73 merged master 2021-12-22 00:18:32 -06:00
Ali Abid
39ffefbdc1 webcam video support 2021-11-24 19:41:46 +00:00
Abubakar Abid
38b4a4a66a Merge branch 'master' into flagging-spaces 2021-11-16 12:08:58 -06:00
Abubakar Abid
f361f36625 indentation fix 2021-11-15 07:14:21 -06:00
Jeroen Van Goey
b567a93af2
Update test to catch ValueError when serializing Image with unknown type 2021-11-15 11:15:25 +01:00
Abubakar Abid
fa78beddb0 refactored flagging 2021-11-13 00:33:59 -06:00
Abubakar Abid
d09b24ae5f fixed tests based on Ali's feedback 2021-11-09 12:30:59 -06:00
Abubakar Abid
424d390319 fixed tests so they do not trigger analytics 2021-11-09 08:48:55 -06:00
Abubakar Abid
ec03a04119 fixed tests to they pass on woindows 2021-11-08 13:29:04 -06:00
Abubakar Abid
1ecbc2f834
Tweaked test inputs 2021-11-04 20:39:11 -05:00
aliabd
0a2f05d7f3 fixing after merge 2021-11-03 18:30:58 -07:00
aliabd
3ba5775d69 avoiding ffmpeg error 2021-11-03 14:29:10 -07:00
aliabd
18d0bd2d13 expanded testing for inputs 2021-11-03 14:21:51 -07:00
aliabd
376bf3f138 full coverage on components, fixed flagged makedirs 2021-11-03 11:13:50 -07:00
aliabd
789f3f9987 full tests for inputs.py 2021-11-02 13:17:35 -07:00
aliabd
f55dd25cdf added tests for input number, checking coverage 2021-10-29 13:15:05 -07:00
aliabd
c1e290a154 coverage check for Textbox 2021-10-29 12:50:58 -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
Abubakar Abid
cf9d179794 fixed output component issues causing tests to fail 2021-10-22 07:07:24 -05:00
Abubakar Abid
b26355b851 same for outputs 2021-10-13 22:21:34 -05:00
Abubakar Abid
ea09fce16e test no duplicate names 2021-10-13 22:18:46 -05:00
Ali Abid
bf4ae17adc restructure file upload format for file, audio, and video. Moved scipy to pydub. 2021-10-12 19:14:42 +00:00