Commit Graph

300 Commits

Author SHA1 Message Date
Abubakar Abid
b96ac29e48 more tests for networking 2021-10-26 07:57:29 -05:00
dawoodkhan82
bcf46b225f merge 2021-10-25 18:30:44 -04:00
dawoodkhan82
e1b4165eb5 external tests 2021-10-25 18:27:08 -04:00
AK391
3c3a33d3c5 test update inferface 2021-10-25 15:29:55 -04:00
Abubakar Abid
bdf9c69353 networking tests 2021-10-25 11:06:36 -05:00
Abubakar Abid
1e8cc4a333 added some networking tests 2021-10-24 03:56:54 -05:00
aliabd
377c2e483d fixing selenium tests 2021-10-22 14:46:41 -07:00
Abubakar Abid
4d11db59ee removed stale comment 2021-10-22 07:20:03 -05:00
Abubakar Abid
02c77bbcd9 Merge branch 'master' of github.com:gradio-app/gradio 2021-10-22 07:08:47 -05:00
Abubakar Abid
d5bc83b60e
Merge pull request #303 from gradio-app/abidlabs/api
Ability to call() Interfaces, including those loaded from HF Hub & Spaces
2021-10-22 07:07:58 -05:00
Abubakar Abid
cf9d179794 fixed output component issues causing tests to fail 2021-10-22 07:07:24 -05:00
Abubakar Abid
e82308eee7 making fixes based on Ali's comments 2021-10-22 06:50:26 -05:00
Abubakar Abid
6dc6ecb2cd making fixes based on Ali's comments 2021-10-22 05:55:42 -05:00
AK391
6608a4042f test changes 2021-10-21 17:30:32 -04:00
Abubakar Abid
8ee71ce5d7 started tests 2021-10-21 15:02:52 -05:00
AK391
a109ae25f4 test update util 2021-10-20 13:19:39 -04:00
AK391
86f79bb6d6
Update test_utils.py 2021-10-20 12:33:25 -04:00
Abubakar Abid
98c10fcb02 added some more tests for external APIs 2021-10-19 10:59:44 -05:00
Abubakar Abid
3e9e861184 implemented input serialization 2021-10-19 00:59:28 -05:00
Abubakar Abid
d0437bfc22 added tests for external 2021-10-17 02:25:04 -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
5718a5dfc6 fix tests 2021-10-12 20:42:50 +00:00
Ali Abid
40b57e67fa fix test 2021-10-12 19:57:53 +00: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
Ali Abid
9aba5eb148 Support video example preview 2021-10-05 19:24:14 +00:00
Abubakar Abid
9ed2f1fe29 fixed warnings & unittests 2021-09-14 10:28:55 -05:00
Pradyumna Rahul
c4eeac0ca4 Adds clauses for specific exceptions in version check (#261)
When any exceptions occurs in the "try" block of the code, it would
handle it the same way regardless.
In the `version_check`, there are 4 possibilities for an error to
occur. These are as follows:
1) Gradio package is installed improperly due to which the version information is inaccessible.
2) JSON cannot be parsed from the Package version URL.
3) JSON that is parsed from the URL does not contain version information.
4) The Package URL is not accessible.

Refactored method to handle these cases and provide appropriate messages.

Co-authored-by: Pradyumna Rahul <pradyumnar@Pradyumnas-MacBook-Pro.local>
2021-09-02 14:01:51 -07:00
Ali Abid
b9310739d9 fix tests 2021-09-01 22:26:00 +00:00
Ali Abid
a2e809c4af fix tests 2021-09-01 22:21:32 +00:00
Ali Abid
e52fc1d58f fix tests 2021-08-30 19:27:36 +00:00
root
40f9ed7a8a updated PyPi version 2021-08-05 18:56:23 +00:00
Ubuntu
3d8f0ca9e6 add tests for built tag 2021-08-04 01:20:59 +00:00
Ali Abdalla
e4137a947b fixed selenium tests (#245)
* increasing time sleep to 5

* reduced gap, fixed golden
2021-07-14 16:31:16 -05:00
aliabd
44f506c5a6 added wait for color issue 2021-06-29 10:36:10 -07:00
Ali Abid
26ba1634ac fix failing tests 2021-06-15 11:07:44 -07:00
Ali Abid
53a5c1cc84 fix failing tests 2021-06-15 10:59:49 -07:00
Ali Abid
704c0a0bcd use cdn static files for unit tests 2021-06-15 10:43:57 -07:00
aliabd
2ee585be2f replaced golden images 2021-05-24 17:12:44 -04:00
Ali Abid
74e8bcb3c4 test fies 2021-05-24 14:07:04 -07:00
Ali Abid
b78ab63a0b updated test 2021-05-24 13:50:21 -07:00
Ali Abid
7f135f9d74 merge master 2021-05-24 10:48:01 -07:00
dawoodkhan82
bd0a2e2a81 unittests for mix 2021-05-20 15:16:16 -04:00
dawoodkhan82
a1053e9a9f hugging face interfaces + unittests 2021-05-20 14:43:26 -04:00
Abubakar Abid
a5912b55c3 fixed failing tests 2021-04-29 23:41:51 -04:00
Ali Abid
c48abe3161 fix tests for multiple file input 2021-04-26 08:19:24 -07:00
aliabd
8910a18c63 fixing golden images 2021-04-19 23:03:33 +04:00
aliabd
9e5a544c7b fixing selenium screenshots 2021-03-11 23:32:38 -05:00
Ali Abid
432174ef11 move 2021-03-09 09:25:21 -08:00
aliabd
7657800b58 fixed selenium tests 2021-02-25 12:23:58 -08:00
Ali Abid
bd28056fed fix tests 2020-12-21 09:55:02 -08:00
Ali Abid
cd09471b77 fix failing tests 2020-12-21 07:55:52 -08:00
aliabd
888030f041 updated golden screenshots 2020-11-24 01:10:33 +04:00
aliabd
e2a04a34d7 changed io to iface 2020-11-24 01:06:37 +04:00
aliabd
41251f858b Merge branch 'master' of github.com:gradio-app/gradio
t push# Please enter a commit message to explain why this merge is necessary,
2020-11-04 23:14:26 +04:00
aliabd
b5d49088a1 changed golden to reflect new buttons 2020-11-04 23:14:21 +04:00
Ali Abid
fdfa94b9e7 fix failing tests 2020-11-04 08:57:09 -08:00
aliabd
780091979e changed golden images for test demos 2020-11-04 20:07:46 +04:00
aliabd
f122bf24bd fixed image_mod test to match demo 2020-11-04 19:54:55 +04:00
Ali Abid
6eb945f639 support examples for all types; fix failing tests 2020-10-28 11:39:28 -07:00
Ali Abdalla
d4d768e9be End-to-end UI tests with Selenium (#72)
* selenium test file

* selenium test

* added save_to as interface attribute, 4 demo tests with selenium

* change name to test_demos

* fixed wait until, removed path insertion

* added selenium to circleci config

* trying chrome driver image

* removing cache from circlci

* using chromedriver_installer

* adding deps for chromedriver

* sudo

* removed chromedriver

* added chromium-chromedriver

* using chromedriver-py

* using service instead of exec path

* using latest selenium

* using browsers image

* added cwd to tmp and test paths

* saving artifacts

* added tmp.txt

* changed driver size

* elem.text sleep

* driver size fix

* saving artifacts

* saving artifacts correctly

* saving artifacts correctly

* saving artifactS

* print statement

* print statement

* print statement

* correct dir

* debugging

* debugging

* debugging

* fixing wonderful

* running comparison

* current dir fix

* changing longest_word

* fixed longest_word

* clean up

* fixing new output label name

* time limit on while loops

* refactoring common code

* removed setUp

* removed server_port declaration from demos

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2020-10-23 18:28:30 +04:00
Ali Abid
0773097c4c interpretation plus documentation 2020-10-22 05:09:17 -07:00
Abubakar Abid
b3106cb6af added test for interpretation 2020-10-05 07:43:42 -05:00
Ali Abid
14ba503b77 add testing and flask changes 2020-09-21 11:51:39 -07:00
Ali Abid
799970018a mid progress 2020-09-17 14:38:22 -07:00
Ali Abid
10c8cf60bf in progress 2020-09-15 05:16:14 -07:00
dawoodkhan82
f626f79b21 merge 2020-08-11 11:44:33 -04:00
Ali Abid
3f95aaeb29 tests 2020-08-10 13:52:43 -07:00
dawoodkhan82
651f5dfb0b disable analytics on tests 2020-08-10 12:27:29 -04:00
Ali Abid
f4cc598c6e big changes 2020-08-05 10:42:52 -07:00
Abubakar Abid
924cb0e1be fixed broken tests 2020-07-08 17:02:17 -05:00
Abubakar Abid
a1a2096a74 added detailed explanations of what each output expects along with relevant tests 2020-07-07 00:51:07 -05:00
dawoodkhan82
3fe9f0ae1c test fixes 2020-07-01 20:34:51 -04:00
Abubakar Abid
773c30ca2d fixed networking issue 2020-07-01 11:51:36 -05:00
dawoodkhan82
6376de175d test fixes 2020-06-30 19:11:35 -04:00
dawoodkhan82
ee5a9df55f unit test fixes 2020-06-11 15:31:44 -04:00
Ali Abid
ef0caef720 cleanup and new API 2020-06-09 17:00:30 -07:00
Abubakar Abid
b19102a775 fixed test 2019-07-26 02:35:00 -07:00
dawoodkhan82
afa1944570 fix unit test, remove h5 files 2019-07-24 01:34:10 -07:00
dawoodkhan82
53b194f755 check for sample inputs func and add unit test 2019-07-23 14:40:05 -07:00
Abubakar Abid
3ec603afff fixed failing sketchpad validation test 2019-07-21 18:46:00 -07:00
dawoodkhan82
019c3bc9c8 more fixes 2019-06-19 12:03:54 -07:00
dawoodkhan82
a2e5f35553 more fixes 2019-06-18 13:23:01 -07:00
dawoodkhan82
5d6c68c783 fix unit tests 2019-06-18 13:13:50 -07:00
dawoodkhan82
b227ed3a6b unit tests 2019-06-14 05:13:13 -04:00
Abubakar Abid
ef5ac8a2ad added tests for new outputs 2019-03-18 05:38:10 -07:00
Abubakar Abid
57f29f0dac refactored inputs.py to support js and template rendering 2019-03-18 05:24:25 -07:00
Abubakar Abid
757eae6fd2 gradio 0.3.3 2019-03-09 18:05:30 -08:00
Abubakar Abid
81846b0ea4 added pytorch handling and tests 2019-03-07 13:53:34 -08:00
Abubakar Abid
9aa23180e7 got the class probs to be working! 2019-03-05 23:23:04 -08:00
Abubakar Abid
5a4bab3a8d added ability to accept preprocessing arguments in some input intraces + tests 2019-03-05 22:51:36 -08:00
Abubakar Abid
9e64d86039 add support for passing in interface instances 2019-03-05 22:45:08 -08:00
Abubakar Abid
a3516c331b fixed file copy; added confidences to class label interface 2019-03-05 22:34:59 -08:00
Abubakar Abid
8857383131 added tests for networking 2019-03-01 20:05:39 -08:00
Abubakar Abid
b5e7cb69ae added test for interface.py 2019-02-27 21:51:51 -08:00
Abubakar Abid
6d91825899 reorganized files to clean up interface.py 2019-02-27 21:39:18 -08:00
Abubakar Abid
da2966f35a deteled some unnecessary files 2019-02-27 16:59:12 -08:00
Abubakar Abid
a8034f5e99 added tests for outputs 2019-02-27 16:54:08 -08:00
Abubakar Abid
a385d76b45 renamed class to label 2019-02-27 16:45:13 -08:00
Abubakar Abid
7216c53c43 added unittests for inputs.py 2019-02-27 16:43:20 -08:00