Abubakar Abid
5622331da7
Extend pyright
to cover tests as well ( #8856 )
...
* add type to test
* ignore certain demos
* notebooks
* type test_video
* more typing
* more typing
* more typing
* add changeset
* more typing
* more
* more
* files
* ds
* ds
* plots
* audio
push
* annotated
* utils
* routes
* iface
* server
* restore
* external
* dep
* components
* chat interface
* fixes
* blocks
* blocks
* blocks
* blocks
* fixes
* fixes
* format
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-21 19:55:18 -07:00
Abubakar Abid
95c6bc897b
Fix flagged files and ensure that flagging_mode="auto" saves output components as well ( #7704 )
...
* interface
* docstring
* changes
* changes
* add changeset
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* fix
* changes
* add changeset
* flaggin
* simplify
* changes
* helpers
* filedata
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-14 14:03:34 -07:00
Egon Ferri
a6bb7222ab
fix: avoid unnecessary folders creation when flagging ( #6245 )
...
* fix: avoid unnecessary folders creation when flagging
* test: flagging_does_not_create_unnecessary_directories
---------
Co-authored-by: Egon Ferri <egon.ferri@immobiliare.it>
2023-11-02 12:28:38 -07:00
Freddy Boulton
80727bbe2c
Fix dataset features and dataset preview for HuggingFaceDatasetSaver ( #5135 )
...
* Add tests
* Use hf token
* lint
* add changeset
* Add empty string for None
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 14:14:12 -04:00
Lucain
b4206cd33a
Safer HuggingFaceDatasetSaver
(and deprecate HuggingFaceDatasetJsonSaver
) ( #3973 )
...
* Draft for a safer HuggingFaceDatasetSaver
* Rename (and replace) gr.SaferHuggingFaceDatasetSaver as gr.HuggingFaceDatasetSaver
* update changelog
* ruff
* doc
* tmp work
* merge 2 classes
* remove useless code
* adapt tests
* Update gradio/flagging.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update CHANGELOG.md
* fix typing
* code formatting
* removed print from tests
* removing imports
* removing imports
* fix paths
* formatting
* wording
* formating
* fix tests
---------
Co-authored-by: testbot <lucainp@hf.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-01 11:59:41 -05:00
space-nuko
e6ea19dee9
Add Windows CI ( #3628 )
...
* Add Windows CI
* Update changelog
* fix
* Skip one test on Windows
* Preserve virtualenv path
* Skip another test on Windows
* Make conditional flaky
* Requested changes
* consistent os
* cleanup
* fix test for windows
* remove unnecessary check
* lint
* lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 11:55:59 -07:00
Abubakar Abid
04ddce05b3
Some improvements to Flag ( #3289 )
...
* Fixes to button disable
* button
* formatting
* flagging fix
* fixes
* formatter
* changelog
* ormatting
* tests
* saving
* adding optionality for flagging
* updatest
* error catching
* updates
* changelog
* tests
* typing
* flag button
* formatting
* tests
* tests
* tests
* increased latency
* queue fix
* clear
* formatting
* fix
* fix tests
2023-02-28 10:29:34 -08:00
Abubakar Abid
61d2f15562
Fix to HuggingFaceDatasetSaver ( #3025 )
...
* hf flag fix
* fixed huggingface hub params
* formatting
* fix flagging tests
* add a try / catch
2023-01-20 20:15:45 -08:00
Abubakar Abid
0879f0a296
Fixes flagging when allow_flagging
is set to "auto" ( #2695 )
...
* flagging fix
* formatting
* changelog
* auto
* auto
2022-12-20 15:27:14 -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
4a1321ce8a
Updated our analytics on creation of Blocks/Interface ( #2082 )
...
* added version to analytics
* formatting
* fix flake
* disabled analytics on anything that runs via ci/cd
* formatting
2022-08-25 13:23:28 -07:00
Chris Emezue
9c4dc6c183
Add a flagging callback to save json files to a hugging face dataset ( #1821 )
...
* work on saving flags in JSON format
* explained what I did more clearly
* final updates + added test case
* reviews to flagging.py for HuggingFaceDatasetJSONSaver
* formatted imports
* used uuid for random ids
* used uuid for random + function to get dataset infos
* reformmated flagging.py
* fix examples test
* formatting
* async examples
* working on mix
* comment out failing test
* fixed interface problem
* final updates to HuggingFaceDatasetJSONSaver flagging.py
* final updates to HuggingFaceDatasetJSONSaver flagging.py
* formatting
* some tweaks
* tweaks
* tweaks
* omar's fixes
* added back test.init
* restored test init
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-23 16:01:37 -07:00
Abubakar Abid
fd70292fbe
formatting
2022-03-25 11:14:42 -07:00
Abubakar Abid
6eeaccc11e
flagging tests pass
2022-03-25 11:12:45 -07:00
Abubakar Abid
63d18ac02b
formatting
2022-03-23 15:50:10 -07:00
Abubakar Abid
6c01bad233
commented out flagging tests as we don't support that yet
2022-03-23 14:06:00 -07:00
aliabid94
d3a680697a
black fix ( #628 )
...
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-02-15 16:32:42 -08:00
Anton Kollmats
ae5a0c7fad
fixes PermissionError for non-writable flagging path
2022-02-15 11:15:11 +01:00
Lysandre
5522fa4d6a
Upgrade black to version ~=22.0
2022-02-08 13:56:13 -05:00
Abubakar Abid
82cea220fa
added flagging tests
2022-01-25 23:44:41 -06:00
Abubakar Abid
b1a582c6c5
unused improt
2022-01-23 22:55:13 -06:00
Abubakar Abid
f6341be7c7
flagging
2022-01-23 22:54:48 -06:00
Ömer Faruk Özdemir
cc0cff893f
Format The Codebase
...
- black formatting
- isort formatting
2022-01-21 16:44:12 +03:00
Abubakar Abid
704073d274
fixed some flagging tests
2021-11-16 12:43:40 -06:00
Abubakar Abid
d4c357b837
reorganized flagging to make it easier to subclass
2021-11-16 12:24:01 -06:00
Abubakar Abid
fa78beddb0
refactored flagging
2021-11-13 00:33:59 -06:00
Abubakar Abid
27a4b4e637
rewrote DefaultFlaggingHandler not to need app
2021-11-01 11:40:51 -05:00