Yuichiro Tachibana (Tsuchiya)
f757febe18
Fix/lite dev code ( #4784 )
...
* Stop embedding JS scripts on lite.html because they are also bundled into the final build
* Add changeset
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 19:29:27 +01:00
Freddy Boulton
3a6406e5d5
ClearButton browser test ( #4749 )
...
* Icon testids
* Simpler test
* Add test
* Demo check
* Add notebook
* Revert demo
* Fix code
* Add non-None callable value
* change
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 19:22:25 +01:00
Ali Abdalla
67ce44dee1
fix changelog issues ( #4787 )
2023-07-04 20:12:41 +03:00
Dawood Khan
f04c7a8c5f
Fixes column width for textbox in gr.Examples based on the content ( #4700 )
...
* fix
* changelog
* Update CHANGELOG.md
* changes
* changes
* tweaks
* fix
* fix
* fix
* fix types
* fix notebooks
* Update CHANGELOG.md
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 12:21:23 -04:00
Dawood Khan
156bb26280
more tests ( #4745 )
...
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 15:41:50 +01:00
Yuichiro Tachibana (Tsuchiya)
cb96d657b4
Lite: refactoring the dev script ( #4753 )
...
* Rename the 'start' npm command to 'dev' for in-project consistency
* Fix the 'dev:lite' npm command to launch the dev command of @gradio/wasm as well
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 15:35:58 +01:00
renovate[bot]
0529dfd43e
chore(deps): update dependency mdsvex to ^0.11.0 ( #4782 )
2023-07-04 15:19:06 +01:00
renovate[bot]
db700df910
chore(deps): update dependency typescript to v5 ( #4783 )
2023-07-04 14:56:01 +01:00
Ali Abdalla
cd693708cf
Converting the website into sveltekit ( #3437 )
...
* index page
* demos page
* guides gallery page
* guides
* some docs work
* changes
* changes
* docs work
* refactor some to ssr
* more refactoring
* add metatags
* add special docs pages and improve nav
* fix prev next in combining
* add changelog
* Site slugs for new website (#3431 )
* safe slugs for docs
* add slugs to guides
* changes
* add flagging
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* make anchor tags visible on hover
* add anchor tags to docs
* fix @html in codeblocks
* fix demos in guides
* syntax highlighting code in example usage
* fix @html in changelog
* fix contributing lin
* fix assets in guides
* fix broken assets on build
* error page
* fix meta tags updating
* move guides to be /guides/[guide] instead of /[guide]
* add headers to sections and make them linkable - freddy feedback
* add guides section to docs
* tighten width and add second nav bar
* styling second nav bar
* smooth scrolling in docs and guides
* make components clickable in event listener graph
* load latest gradio.js
* menu bar on docs mobile
* scrolling highlight menu and remove base docs page
* vercel
* refactor guides
* fix slugs in docs
* fix < and code formatting in guides
* added search
* redirect all old links
* fix bad merge
* fix paths
* Fix css issue with spaces logo
* add status page link to footer
* add themes to docs
* fix new documentation.py path
* add python client docs
* make docs faster
* add clients ot docs
* colors
* convert to adapter static
* prerender
* fix broken paths in guides
* fix broken slugs
* Aliabd/website sveltekit test (#4572 )
* fixes to paths
* fixes
* typechecking
* fix
* fix
* fix
* types lib
* more type fixes
* extends fix
* typing fix
* typing fix
* json typing fix
* add jsons
* rollup
* tweak
* fix lockfile
* fix maybe
* fix maybe
* changes
* ui functional fix
* oops
* pnpm version
* fix app
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-04 16:33:22 +03:00
Yuichiro Tachibana (Tsuchiya)
80b4996595
Lite: filesystem and requirements installer ( #4779 )
2023-07-04 14:11:22 +01:00
Yuichiro Tachibana (Tsuchiya)
46008b6659
Add 'pnpm --filter @gradio/client build' to the build script of @gradio/lite ( #4747 )
2023-07-04 13:33:04 +01:00
renovate[bot]
6a9e2ed5ac
chore(deps): update dependency postcss-custom-media to v10 ( #4766 )
2023-07-04 13:26:36 +01:00
renovate[bot]
04965755de
chore(deps): update dependency @csstools/postcss-global-data to v2 ( #4765 )
2023-07-04 12:59:53 +01:00
aliabid94
5dbf84dd15
Fix code render in key features ( #4777 )
2023-07-03 18:28:40 -05:00
Abubakar Abid
8a7a103d09
Add docs for autoplay
parameter ( #4772 )
...
* autoplay
* docstring chatbot
2023-07-03 17:41:50 -05:00
aliabid94
6cafc75099
Minor tweaks to API page UI ( #4740 )
...
* changes
* changes
* changes
2023-07-03 16:45:11 -05:00
aliabid94
6c5427230e
Create Warning, Info modals ( #4518 )
...
* changes
* changes
* changes
* changes
* changes
* Styling for error, warning and info toasts (#4603 )
* create abstract toast component for info/warning/error
* add icons
* add light mode theming
* add theme mode check and dark mode styles
* update theme_mode on update
* clean up render of toast content
* replace dynamic css vars with toast type css selectors
* tweak colours
* change error pill border colour to align with toasts
* formatting
* fix failed test
* rename icon files and clean up css
* changes
* changes
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-03 16:28:39 -05:00
renovate[bot]
1ba89195c0
chore(deps): update dependency @storybook/testing-library to ^0.2.0 ( #4769 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-03 16:58:06 +02:00
Hannah
33b5954a3b
Add gradio storybook ( #4696 )
...
* initialise storybook
* fix storybook config
* more config
* add test story
* add button story
* add a11y addon
* add chromatic job
* fix script path
* fix path again
* yml tweak
* typo
* tweak
* tweak job
* change when job runs
* revert change
* revert lockfile
* config tweaks
* regen lockfile
* tweak
* tweak
* move chromatic tests to ui workflow
* tweak
* add install deps cmd
* add install pnpm input
* job tweak
* test
* clean up
* regen lockfile
* remove redundant option
* workflow tweak
* tweak
* tweak
* cli tweak
* cli tweak
* restore inspector prop
* skip frontend gradio build and post sb url to PR
* remove pollen import
* cancel job if no-visual-update tag present
* move stoeybook files to /js and amend pnpm scripts
* tweak theme css script
* tweak action body / test tag
* fix plot test and tweak pr comment job
* fix yml
* add gh token
* test
* update pnpm lock
* yml test
* restore yml update comment
2023-07-03 16:21:00 +02:00
Freddy Boulton
38b16beb16
Switch gpt-j-6b model for gpt2-xl ( #4750 )
...
* Switch model and fix demo
* fix remaining demos
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-30 16:30:04 -05:00
Abubakar Abid
56da69619c
Fix for analytics error ( #4738 )
...
* added exception
* fix
* changelog
* format
* blocks
* format
* Update gradio/exceptions.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* review fixes
* formatting
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-30 16:16:55 -05:00
Abubakar Abid
0b7340f900
[WIP] Functional tests for yield
and cancel
( #4678 )
...
* wip
* update demo
* changes
* websocket
* random
* test websockets
* fix stdio error
* fix notebooks
* cancel events
* fix test
* Update js/app/test/cancel_events.spec.ts
Co-authored-by: pngwn <hello@pngwn.io>
* Update js/app/test/cancel_events.spec.ts
Co-authored-by: pngwn <hello@pngwn.io>
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-30 10:59:50 -05:00
Aarni Koskela
2544e7bd16
URL validation/access fixes ( #4695 )
...
* is_valid_url: share a requests session for performance
* Rename is_valid_url to probe_url (because that makes sense for what it does); add is_http_url_like
* Do not allow encode_url_to_base64 to encode error responses
* Do not allow download_tmp_copy_of_file to download error responses as valid files
* Changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-30 10:25:33 -05:00
pngwn
57d37d1b9f
kill process properly in test teardown ( #4743 )
...
* maybe
* send SIGKILL when killing process
2023-06-30 11:49:30 +01:00
pngwn
ae80066c8a
chore: update versions ( #4741 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-30 10:38:58 +01:00
Yuichiro Tachibana (Tsuchiya)
622e8c62f2
Refactor the HTML files for the gradio-lite development ( #4739 )
2023-06-30 10:07:28 +01:00
Yuichiro Tachibana (Tsuchiya)
1dc3c1a9a2
Lite: Rerun the Python code and refresh the frontend ( #4732 )
2023-06-30 08:24:35 +01:00
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