Commit Graph

28 Commits

Author SHA1 Message Date
Abubakar Abid
20057aa946
Create fewer temp files and make them consistently-named (#2758)
* tmp files

* components

* changes

* temp_file_sets

* TempFileManager class

* added file manager

* internal functions

* tests

* formatting

* changes

* video tests

* added tests for File

* cheetah image

* formatting

* tests for upload button

* temp files

* formatting

* changelog

* fixed audio

* tmp files

* tmp files

* gallery

* deprecated type=file

* fixing tests

* patch os.path.exists

* fixed test_video_postprocess_converts_to_playable_format

* fixed tests

* changelog

* fix tests

* formatting

* added a download_if_needed

* formatting

* fixed download

* fixed gallery demo

* fix tests

* version

* fix for mac

* consolidate
2022-12-15 14:37:09 -06:00
Abubakar Abid
010827e211
Refactoring to replace unittests with pytests (#2610)
* replace pytests with unittests

* formatting

* test blocks

* fixed test/blocks

* test components

* working on test components

* test components

* test components almost fixed

* removed unittest

* linting

* fix remaining tests

* lint

* formatting

* changelog
2022-11-08 01:37:55 +01:00
Abubakar Abid
76512378a8
Adds support for audio samples in float64, float16, or uint16 formats (#2545)
* fixed audio

* added some unit tests

* formatting

* formatting
2022-10-26 16:24:46 -07:00
Abubakar Abid
081f63c5c5
Removes special characters from temporary filenames (#2480)
* remove special chars

* tests

* tests
2022-10-18 12:58:01 -07:00
Freddy Boulton
14d23e4d19
Used temp file in test (#2241) 2022-09-13 10:32:30 -04:00
cobryan05
b145a2a191
Keep embedded PngInfo metadata (#2170)
* Keep embedded PngInfo metadata

Maintain any text-only PngInfo metadata on a PIL image when
dragging UI images between components.

* Minor cleanup
2022-09-04 18:54:30 -07:00
Freddy Boulton
85229a7058
Catch IndexError, KeyError in video_is_playable (#2113) 2022-08-29 12:57:04 -04: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
Ömer Faruk Özdemir
4e218fe00f
async-interface-fix (#1845)
* 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>
2022-08-10 18:29:14 -04:00
Abubakar Abid
ef8b97223d
Fixing import issues so that the package successfully installs on colab notebooks (#1027)
* updated PyPi version to 2.9.0b

* added to init

* moved media_data

* formatting

* updated PyPi version to 2.9.0b2
2022-04-19 11:27:32 -07:00
Abubakar Abid
5eb8763bd5
fixed failing test on main (#1023) 2022-04-19 07:32:40 -07:00
Ömer Faruk Özdemir
6274b9099e
blocks-move-test-data (#927)
* blocks-move-test-data
- move test_data under gradio

* blocks-move-test-data
- typo

* blocks-move-test-data
- fix tests
2022-04-06 13:55:51 +01:00
Ömer Faruk Özdemir
ceee0fce9e blocks-components-test
- use deepcopy in the remaining tests as well
- update a failing test
- add processing utils to init for IDE to identify the function
2022-04-05 13:08:53 +03:00
Ömer Faruk Özdemir
71e3997395 blocks-components-tests
- reformat
2022-03-30 13:26:39 +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
972c66e09b Format-The-Codebase
- solve the flake8 warnings
2022-02-09 22:52:26 +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
bb6805e25f Accelerate Tests
- Create local and cloud test folders and move all the tests with duration > 1 second to the cloud tests.
- Update scripts
2022-02-07 14:29:55 +03:00
Ömer Faruk Özdemir
cc0cff893f Format The Codebase
- black formatting
- isort formatting
2022-01-21 16:44:12 +03: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
dawoodkhan82
7c00c230e1 uncomment test case 2021-11-08 15:45:25 -05:00
dawoodkhan82
3fa97d67a7 merge 2021-11-08 15:38:41 -05:00
dawoodkhan82
931429754e processing_utils tests 2021-11-08 15:37:32 -05:00
Abubakar Abid
8beae1f982 minor tweaks 2021-11-04 05:53:33 -05:00
dawoodkhan82
34a822474e more processing tests 2021-11-03 17:17:26 -04:00
dawoodkhan82
11e563408b test image path fix 2021-11-02 17:31:10 -04:00
dawoodkhan82
65a5ed5147 utils and external unit tests 2021-11-02 17:22:52 -04:00