Commit Graph

5323 Commits

Author SHA1 Message Date
Sunil Kumar Dash
e38496ec1e
Support path objs in components (#4581)
* Added support for Path objs in components(Video, Geallery, chatbot)

* added tests for pathlib.Path objs in Video, chatbot, Gallery

* added changes to docstrings and type annotations

* changelog

* formatting

* video

* fixing video docstring

* update

* Update test/test_components.py

* Update test/test_components.py

* formatting

* remaining components

* add pathlib to tests

* fix test

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-29 16:54:35 -05:00
pngwn
9361a29da2
chore: update versions (#4735) 2023-06-29 22:35:55 +01:00
Yuichiro Tachibana (Tsuchiya)
f9171288d4
Introduce CrossOriginWorker class to load the WebWorker file from a different domain (#4731)
* Introduce CrossOriginWorker class as a workaround to load the webworker.js served from a domain different from the main page

* Update the changesets

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-29 21:07:04 +01:00
pngwn
b6f02bdd87
scroll to top when api clicked in spaces (#4714)
* scroll to top when api clicked in spaces

* changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-29 20:59:40 +01:00
Abubakar Abid
409593e9cc
Updates to the API endpoints / docs, and fixing the Theme builder (#4683)
* view API fixes

* code snippet js

* changelog

* api name false

* examples

* client trigger tests

* fix typecheck

* black

* type

* typing

* typing

* update gif

* type ignore

* added tests

* format

* added test

* test

* fix guides

* snippet

* tests

* fix tests

* add test

* fix typing

* fix test

* remove comments
2023-06-29 14:05:25 -05:00
Freddy Boulton
acc72cddee
Fix show_label for Label component (#4713)
* Add code

* Add tests

* Add CHANGELOG
2023-06-29 11:42:26 -04:00
Dawood Khan
ed5178acd3
Revert "Remove chatbot_streaming from guide" (#4730)
* Revert "remove chatbot_streaming from guide (#4729)"

This reverts commit 21c0198da1.

* bring back streaming demo
2023-06-29 11:11:38 -04:00
pngwn
8b0c680d9a
chore: update versions (#4720)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 15:55:28 +01:00
Ali Abdalla
21c0198da1
remove chatbot_streaming from guide (#4729) 2023-06-29 18:48:37 +04:00
pngwn
96802fa135
Fix again (#4728)
* fix

* fix

* fix

* asdasd
2023-06-29 15:41:26 +01:00
pngwn
f082dd6e63
fix (#4727)
* fix

* fix

* fix
2023-06-29 15:33:32 +01:00
pngwn
c0baeb4d1c
Fix 123 (#4725)
* fix

* fix again

* fix again

* fix again

* fix again

* fix again

* fix again

* try this?
2023-06-29 14:47:46 +01:00
pngwn
dbb33723fe
Fix 123 (#4724)
* fix

* fix again

* fix again

* fix again

* fix again

* fix again

* fix again
2023-06-29 14:28:55 +01:00
pngwn
fd6735b734
Fix 123 (#4723)
* fix

* fix again

* fix again

* fix again

* fix again
2023-06-29 14:19:29 +01:00
pngwn
16782b9b1f
Fix 123 (#4722)
* fix

* fix again

* fix again
2023-06-29 14:07:14 +01:00
pngwn
f566f80b44
fix (#4721) 2023-06-29 13:38:47 +01:00
Yuichiro Tachibana (Tsuchiya)
927c176ef6
Add js/lite/package.json (#4718) 2023-06-29 13:25:29 +01:00
Yuichiro Tachibana (Tsuchiya)
ab5d1ea0de
Fix the description field of client/js/package.json (#4717) 2023-06-29 12:57:46 +01:00
Jeb
d85fddf677
Updated components with 'info' attribute to update when update() is called on them. (#4715)
* updated components with 'info' attribute to update when update() is called on them.

* added change to CHANGELOG.md

* updated CHANGELOG.md with correct format ending

* fix test

* changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-29 11:09:55 +01:00
Mickey
dc733f47ee
fix(Image): Image mod is mask or color-sketch bug; (#4692)
* fix(Image): Image mod is mask or color-sketch bug;
click undo -> the shadow line not real time change

* fix(Image): write the CHANGELOG

* changelog

* cleanup

---------

Co-authored-by: yanghao <yanghao@dragonest.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-28 23:08:25 +01:00
pngwn
2dcc0845e6
fix hidden error toast (#4712)
* fix hidden error toast

* fix

* try this

* try this

* fix ts

* cleanup
2023-06-28 22:52:12 +01:00
pngwn
085ff0394d
update deps + fix tests (#4675)
* update deps + fix tests

* tweak

* fixes

* changes

* fix everything

* fix checks

* fix

* log

* remove logs

* try this
2023-06-28 22:40:53 +01:00
Dawood Khan
bf26b5f66d
Chatbot Tests (#4662)
* playwright tests for chatbot

* more tests

* changelog

* Update CHANGELOG.md

* fix upload file delay (#4661)

* fix

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Forward `tqdm` constructor arguments to `Progress` component (#4475)

* Forward tqdm constructor arguments to Progress component

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>

* lint

* reorder args

* added tests

---------

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Remove cleared_value (#4685)

* Remove cleared_value

* CHANGELOG

* Add requirements.txt to dialogpt demo (#4686)

* Add requirements.txt

* Update demo notebook

* Add torch

* remove streaming demo + more tests

* Fix blocks_kitchen_sink and streaming_stt demos (#4699)

* Add code

* Add json file

* Remove streaming_stt demo

* Undo generate_notebooks

* Add blocks_kitchen_sink

* fix tests

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* update notebook

* remove debug

* remove debug

---------

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-28 17:11:46 -04:00
Abubakar Abid
dd97ee9940
Dropdown cutoff fix (#4691)
* form

* changelog

* overflow y

* changes

* changes

* changes

* Update js/form/src/DropdownOptions.svelte

Co-authored-by: Aarni Koskela <akx@iki.fi>

* Update js/form/src/DropdownOptions.svelte

Co-authored-by: Aarni Koskela <akx@iki.fi>

* changes

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-28 16:00:27 -05:00
Freddy Boulton
2baf33c33f
Fix Wrong Deprecation Warning message for type/plot parameter (#4709)
* Add code

* CHANGELOG

* Fix

* Add to changelog
2023-06-28 15:02:01 -04:00
pngwn
1650e1d383
4549 autoplay (#4705)
* changes

* tests

* revert demo

* changelog

* cleanup audio

* more tests

* handle video

* cleanup

* fix notebooks

* cleanup

* reinstate files

* fix notebooks

* fixes

* fix tests
2023-06-28 19:37:21 +01:00
Hannah
58c6d68f20
Add radio unit test (#4710)
* add radio unit test

* add default selection

* remove unused spy
2023-06-28 19:26:34 +01:00
pngwn
d08610af84
uopdate (#4706) 2023-06-28 15:15:59 +01:00
Freddy Boulton
b7072b1535
Fix blocks_kitchen_sink and streaming_stt demos (#4699)
* Add code

* Add json file

* Remove streaming_stt demo

* Undo generate_notebooks

* Add blocks_kitchen_sink
2023-06-27 20:55:34 -04:00
Freddy Boulton
29c916c9a6
Add success e2e test (#4688)
* Add success e2e test

* add demo notebook

* Fix

* Fix test

* Make modifications

* Dont use timeouts

* Format

* Success e2e test fix (#4698)

* try this

* tweak

* tweak

* tweak

* cleanup

* cleanup

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-27 15:34:52 -04:00
Aarni Koskela
9c551c316c
More proper deprecation warnings (#4694)
* Add GradioDeprecationWarning subclass

* Add and use find_user_stack_level(); add warn_deprecation()

* Deduplicate `.style()` deprecation warning

* Deduplicate inputs deprecation warnings

* Deduplicate outputs deprecation warnings

* Use warn_deprecation for deprecation warnings

* Changelog

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-27 13:07:40 -05:00
renovate[bot]
a287ebeaeb
chore(deps): update dependency iframe-resizer to v4.3.6 (#4604) 2023-06-27 16:45:30 +01:00
Freddy Boulton
340718e6c2
Slider browser unit tests (#4681)
* First commit

* Fix test

* move to .config

* indent

* Upgrade pnpm

* Lint + ts

* Add more tests

* Lint

* fix test

* Use spy
2023-06-27 10:28:27 -04:00
pngwn
b7a52c410a
Test strat (#4676)
* start

* test strat/ principles

* Apply suggestions from code review

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update test-strategy.md

* Apply suggestions from code review

* Apply suggestions from code review

* Update test-strategy.md

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-06-27 08:48:34 +01:00
Yuichiro Tachibana (Tsuchiya)
4fbdefe94e
Gradio-lite (Gradio Wasm) (#4402) 2023-06-27 08:09:50 +01:00
Freddy Boulton
3abad71ce4
Add requirements.txt to dialogpt demo (#4686)
* Add requirements.txt

* Update demo notebook

* Add torch
2023-06-26 19:21:53 -04:00
Freddy Boulton
86e3eec311
Remove cleared_value (#4685)
* Remove cleared_value

* CHANGELOG
2023-06-26 17:19:07 -04:00
Ilya Trushkin
b5121a96b2
Forward tqdm constructor arguments to Progress component (#4475)
* Forward tqdm constructor arguments to Progress component

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>

* lint

* reorder args

* added tests

---------

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-26 09:26:28 -05:00
aliabid94
7b8fbb17c8
fix upload file delay (#4661)
* fix

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-26 08:14:00 -05:00
Freddy Boulton
9e13cf3890
Audio Unit Tests (#4650)
* Add code

* Add better mocks

* Add tests

* Remove unnecessary import

* Remove unnecessary import

* unused import

* Check mocks

* Remove comment
2023-06-23 18:45:28 -04:00
Freddy Boulton
c7081e5747
Fix AnnotatedImage styling + add demo (#4628)
* Fix css + add demo

* CHANGELOG

* Add image_segmentation

* Add notebook

* Fix demo

* Fix demos
2023-06-23 12:49:26 -04:00
renovate[bot]
4a0e387e7b
chore(deps): update pypa/gh-action-pypi-publish digest to 3be882c (#4600)
* chore(deps): update pypa/gh-action-pypi-publish digest to 3be882c

* fix action version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-23 14:56:08 +01:00
pngwn
92d97d529e
switch unit test env to jsdom (#4657) 2023-06-23 13:22:12 +01:00
pngwn
6903b66283
ignore svelte (#4656) 2023-06-23 12:58:28 +01:00
pngwn
be00a687c9
Test improve (#4655)
* improve test logs for python process

* ensure port is free before startiong server
2023-06-23 12:45:20 +01:00
Abubakar Abid
86dc064e9e
Getting the CI to pass consistently on Windows (hopefully) (#4624)
* run windows jobs

* run windows jobs

* windows jobs

* remove interpretation

* restore

* fixes to checking port

* linting

* remove server name testing

* add timeout

* remove saveto

* remove saveto

* exception

* fixes

* fixes

* fixes

* backend

* cleanup

* changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-06-22 15:23:48 -04:00
Dawood Khan
62701f8dce
Remove unnecessary mock json files (#4625)
* remove mock json files

* changelog

* Update CHANGELOG.md
2023-06-22 10:32:48 -04:00
pngwn
36f0b397c6
remove workbench (#4644) 2023-06-22 14:40:05 +01:00
pngwn
12bc241ecb
fix action (#4643)
* fix action

* changelog
2023-06-22 13:55:43 +01:00
renovate[bot]
633e07150d
chore(deps): update dependency typescript to v5 (#4640)
* chore(deps): update dependency typescript to v5

* fix ts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-22 13:49:28 +01:00