Tom Aarsen
02bd90d7c1
[Docs] Resolve numerous typos ( #4170 )
...
* Resolve numerous typos
* Delete test.py
* Run generate_notebooks
* notebooks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 15:20:41 -05:00
Aarni Koskela
d1853625fd
More Ruff rules ( #4038 )
...
* Bump ruff to 0.0.264
* Enable Ruff Naming rules and fix most errors
* Move `clean_html` to utils (to fix an N lint error)
* Changelog
* Clean up possibly leaking file handles
* Enable and autofix Ruff SIM
* Fix remaining Ruff SIMs
* Enable and autofix Ruff UP issues
* Fix misordered import from #4048
* Fix bare except from #4048
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 21:54:23 -05:00
Abubakar Abid
2be3ea1cc7
Sets matplotlib backend to agg before rendering math ( #4029 )
...
* matplotlib-agg
* fix
* context manager
* Update CHANGELOG.md
* update demos
* linting
* removed warning
* fix test
* fixes
* fix tests
2023-05-01 23:59:31 -05:00
1lint
f97b18ec9d
Allow decoding b64 string without header in processing utils ( #4031 )
...
* allow decoding b64 string without headers
* install gradio-client in edittable mode
* update GH actions
* add test for decoding headerless b64
* add test for decoding headerless b64 image
* some linting
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-01 18:24:54 -05:00
Abubakar Abid
d3b7f73bcf
Update view api page to use Python client ( #3765 )
...
* Update view api page
* simplify
* update
* changes
* changes
* updated info
* formatting
* changes
* fixes
* save
* moved
* remove test input
* tweaks
* formatting
* add raw
* serialize
* fixes
* refactor
* fixes
* fixes
* Fetch api
* lower case
* view api
* fix tests
* format
* rough design
* readme
* api docs
* examples
* format
* formatting
* format
* version
* client changes
* formatting
* update client
* more example inputs
* api docs fixes
* remove notebook
* fix demo
* demo notebook
* styling on code snippet
* formatting
* fix audio, model3d
* format
* fix tests
* version
* cleanup
* format
* format
* format
* fixes
* version
* fix tests
* version
* format
* test
* format
* changelog
* changelog
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-13 16:20:33 -07:00
Abubakar Abid
6e6121a1ac
Sets up the Python gradio
client ( #3300 )
...
* placeholder
* changelog
* added to readme
* client
* implement futures
* utils
* scripts
* lint
* reorg
* scripts
* serialization
* cleanup
* fns
* serialize
* cache
* callbacks
* updates
* formatting
* packaging
* requirements
* remove changelog
* client
* access token
* formatting
* deprecate
* format backend
* client replace
* updates
* moving from utils
* remove code duplication
* rm duplicates
* simplify
* galleryserializer
* serializable
* load serializers
* fixing errors
* errors
* typing
* tests
* changelog
* lint
* fix lint
* fixing files
* formatting
* type
* fix type checking
* changelog
* changelog
* Update client/python/gradio_client/client.py
Co-authored-by: Lucain <lucainp@gmail.com>
* formatting, tests
* formatting, tests
* gr.load
* refactoring
* refactoring'
* formatting
* formatting
* tests
* tests
* fix tests
* cleanup
* added tests
* adding scripts
* formatting
* address review comments
* readme
* serialize info
* remove from changelog
* version 0.0.2 released
* lint
* type fix
* check
* type issues
* hf_token
* update hf token
* telemetry
* docs, circle dependency
* hf token
* formatting
* updates
* sort
* script
* external
* docs
* formatting
* fixes
* scripts
* requirements
* fix tests
* context
* changes
* formatting
* fixes
* format fix
---------
Co-authored-by: Lucain <lucainp@gmail.com>
2023-03-23 15:33:44 -07:00
Abubakar Abid
88afd684be
Makes some fixes related to TempFiles ( #3523 )
...
* temp file fixes
* changes
* fixing tests
* formatting
* fix
* fix chatbot processing
* tests
* get tests to pass
* fix code demo
* changelog
* fix multimodal
2023-03-21 09:37:24 -07:00
Abubakar Abid
0036b2e0b0
Preserve uploaded file names ( #3412 )
...
* document embed params
* fix tests
* cleanup
* cleanup
* cleanup
* revert
* changelog
* changes
* merge
* fix paths
* uploaded files
* persist file names
* changelog
* formatting
* remove orig_name
* remove orig_name
* rm method
* pathlib
* remove test
* fix tests
* lint
* fix model3d issue
* remove zip
* fix tests
* fix tests
* formatting
* fix test
* fix test
2023-03-08 12:24:09 -08:00
Abubakar Abid
752ec0ef6a
Cache temp files created from base64 data ( #3197 )
...
* changes
* added workflow
* fix action
* fix action
* fix action
* changelg
* formatting
* fix
* Delete benchmark-queue.yml
* Delete benchmark_queue.py
* changelog
* lint
* fix tests
* fix tests
* fix for python 3.7
* formatting
2023-02-15 17:24:48 -06:00
wfng92
f92109621a
Keep pnginfo metadata for gallery ( #3150 )
...
* Keep pnginfo metadata for gallery
* add test to pil_to_file for keeping image metadata
* Update CHANGELOG.md
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-09 10:20:50 -08:00
Abubakar Abid
f37d17089d
Fixes components when loading private spaces ( #3068 )
...
* file routes
* adding access token
* add reverse proxy
* adding access token
* context
* rewrite
* frontend
* formatting
* changelog
* formatting
* fix tests
* fixed image issue
* fix frontend
* os removal
* Update test_external.py
* fixes to normalise
* version
* fixes so that functions work
* lint
* formatting
2023-02-07 07:55:51 -08:00
Freddy Boulton
faffddf8c7
Fix image rotation on iOS ( #3091 )
...
* rotate image based on exif tag
* rotate on backend
* CHANGELOG
* Only rotate if needed
* Add image comparison to changelog
---------
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2023-01-31 13:18:23 -05:00
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