D V
52f7831751
refactor: Use package.json for version management ( #5514 )
...
* refactor: Use package.json for version management
- uses package.json file for version management.
- updated the regex pattern.
- removed the logic that creates or updates the version.txt file
* load version through package.json
* fix code duplication
* add changeset
* add changeset
* fixes
* fix
* package version
* fix
* typing
* typing
* changes
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-15 16:23:52 -07:00
pngwn
ddac7e4d0f
Ensure File component uploads files to the server. ( #5253 )
...
* fix dynamic -> interactive
* fix checks
* add changeset
* add changeset
* fix changeset
* fix linting issues
* fix typing issue
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-17 12:20:19 -07:00
pngwn
fbdad78af4
Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. ( #5215 )
...
* lazy load compoennts more granularly
* add changeset
* format
* add changeset
* fix casing
* fix casing
* fix casing
* revert changelog formatting
* add changeset
* revert changelog formatting
* add changeset
* make interactive updates work
* revert changelog stuff
* fix order
* fix static dataframe
* revert demo change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 19:21:41 +01:00
pngwn
643442e1a5
generate docs json in ci, reimplement main vs release ( #5092 )
...
* fixup site
* fix docs versions
* test ci
* test ci some more
* test ci some more
* test ci some more
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* test
* fix
* add changeset
* fix
* fix
* fix
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* notebook ci
* notebook ci
* more ci
* more ci
* update changeset
* update changeset
* update changeset
* fix site
* fix
* fix
* fix
* fix
* fix ci
* render mising pages
* remove changeset
* fix path
* fix workflows
* fix workflows
* fix workflows
* fix comment
* tweaks
* tweaks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 15:54:56 +01:00
Freddy Boulton
35856f8b54
Return final output for generators in Client.predict ( #5057 )
...
* Add code
* add changeset
* add changeset
* Add feat changeset
* Fix js code snippet
* Fix changelog
* Add test
* Delete code
* Lint
* Make fix for python client
* Make JS client changes
* Add submit line to error
* Changelog
* Lint
* Undo
* Add dual handling
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 13:03:56 -04:00
pngwn
1419538ea7
Refactor component directories ( #5074 )
...
* asd
* changes
* fix everything
* cleanup
* add changeset
* fix casing
* lockfile
* fix casing
* fix ci, enable linting
* fix test
* add changeset
* add changeset
* delete changeset
* fix dirs
* fix casing
* fix notebooks
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00
pngwn
62306d9ed1
unified release process ( #4986 )
...
* Implement unified version and release mechanism for all python and javascript packages.
* Update gradio/package.json
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix changelog
* fix changelog
* Update js/button/README.md
* Update .github/workflows/generate-changeset.yml
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 19:13:21 +01:00
Abubakar Abid
b16732ffb2
Add RTL support to Textbox
, Markdown
, Chatbot
( #4933 )
...
* add rtl support
* redo
* remove param
* clog
* fix backend tests; add textbox story
* add textbox story
* fix textbox story
* fixed textbox story, markdown
* markdown story
* format
* fixes'
* Update CHANGELOG.md
* update docstrings
* fix tests
* fix static checks
* fix tests
2023-07-17 12:53:23 -04:00
Freddy Boulton
d3e1d272d5
Fix flaky ui test ( #4906 )
...
* Debug
* Upload screenshots
* Fix path
* turn on verbose mode
* turn on verbose mode
* turn on verbose mode
* await click
* cleanup
* trigger ci
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-12 21:08:36 -04:00
Freddy Boulton
4bf301324b
Lint website ( #4879 )
2023-07-11 21:00:52 -04:00
Yuichiro Tachibana (Tsuchiya)
c7e8ed1e1d
Remove an unnecessary line of .prettierignore ( #4852 )
...
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-07-10 11:45:23 -04:00
Yuichiro Tachibana (Tsuchiya)
9ff0fe924e
Update .prettierignore ( #4824 )
...
* Update .prettierignore
* Specify the exact paths of theme.css
2023-07-10 10:01:37 +01:00
pngwn
7fa5e766ce
format ( #4810 )
2023-07-06 18:43:49 +01:00
pngwn
ea889fa8c4
unit tests for shared component functionality ( #4794 )
...
* add more tests
* fixes
* fixes
* fixes
* fix testmatch
2023-07-06 10:55:45 +01: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
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
pngwn
57d37d1b9f
kill process properly in test teardown ( #4743 )
...
* maybe
* send SIGKILL when killing process
2023-06-30 11:49:30 +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
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
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
pngwn
36f0b397c6
remove workbench ( #4644 )
2023-06-22 14:40:05 +01:00
pngwn
1b4cb3300b
Eslint ( #4593 )
...
* make eslint work
* add vscodes recommendations + settings
* more
* format
* add to ci but ignore failures
* fix
* fix lockfil
* fix
* Update .config/.eslintrc.cjs
Co-authored-by: Aarni Koskela <akx@iki.fi>
* implement review suggestions
* typo
* fix
* tweak
* add globals and fix client linting
* fix type errors
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-22 11:25:27 +01:00
pngwn
d6b6c87c4f
Remove mocks ( #4550 )
...
* changes
* changes
* remove mocks
* fix scripts
* tweak port
* add logs
* add logs
* do tests again
* tweaks
* fixes
* regen notebooks
* change workers
* change workers
* try to speed up ci
* try again
* try again
* try again
* try again
* try again
* fix actions
* again
* again
* again
* again
* again
* again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* try again
* add names to frontend ci steps
2023-06-19 21:02:03 +01:00
2-5
9abe5d362d
Added dev containers support ( #4417 )
...
* Added devcontainer support
* Updated CHANGELOG.md
* Added Dev Containers info to CONTRIBUTING.md
* Removed redundant extension
* Updated docker URLs
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-08 15:00:20 -05:00
pngwn
963c2d26ee
3712 js client ( #3899 )
2023-05-12 16:22:25 +01:00
Yuichiro Tachibana (Tsuchiya)
3b744a5386
Update .prettierignore adding client/js/dist and .venv ( #4160 )
2023-05-11 13:43:53 +01:00
Yuichiro Tachibana (Tsuchiya)
d2314f9442
Fix dev docs ( #4132 )
...
* Move .config/README.md to js/README.md
* Link js/README.md from CONTRIBUTING.md
* Update CHANGELOG.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-09 16:38:38 -05:00
space-nuko
30f4556927
More dropdown fixes ( #3705 )
...
* Fix several dropdown bugs
- Stop reopening when arrow is pressed
- Fix not opening when value text is clicked
- Being unable to filter in single-select mode
- Change color of filter text
- Clear filtering text when focus is lost
* Fix more dropdown issues
- Filter being focused but options not opening
- Make actions triggered on keydown instead of keyup (better responsiveness)
* Select dropdown element if exact match
* Pop last multiselect element if backspaced into
* Fix even more dropdown issues
- Override default input component up/down arrow key action
- Active option preventing arrow key movement if exact match
* Don't truncate dropdown options in X direction
* Format
* Update changelog
* Fix
* Requested changes
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-27 12:56:39 -04:00
pngwn
ae4277a9a8
move files ( #3605 )
...
* move files
* commit the rest of the files
* fix lockfile
* fix workflow
* fix type errors
* fix tests
* only run ci when certain files change
* run correct test command in ci
* version
* fix pypi script
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -07:00