Hannah
6b8a7e5d36
Ensure gr.Dropdown
can have an empty initial value ( #7431 )
...
* ensure dropdown can have empty value
* add changeset
* add changeset
* Add story
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 18:24:02 +01:00
Danil
89450c6a8b
Updated translation for Russian ( #7428 )
2024-02-15 07:22:46 -08:00
pngwn
7b84bc4f05
chore: update versions ( #7387 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-14 14:17:50 -08:00
Dylan Ebert
3e886d8f0a
Model3D Gaussian Splatting ( #7406 )
...
* add gsplat dependency
add gsplat implementation
run formatting
move example .splat and .ply to url
add changeset
dispose of renderer on unmount
notebook
* dynamically load canvas components
2024-02-14 19:10:52 +00:00
pngwn
c2dfc592a4
remove static while pending behaviour ( #7410 )
...
* remove static while pending behaviour
* add changeset
* fix notebooks
* add changeset
* cleanup unused code + fix test
* fix notebooks
* oops
* re-add check
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 16:15:16 +00:00
Abubakar Abid
065c5b163c
Add .key_up
event listener to gr.Dropdown()
( #7404 )
...
* dropdown choice bug
* add changeset
* add changeset
* changes
* add changeset
* format
* key down:
* change
* change
* format
* add KeyDownData
* changes
* add demo
* notebook
* add changeset
* key up
* notebook
* changes
* Delete .changeset/shaggy-hairs-peel.md
* Delete .changeset/tasty-spies-spend.md
* revert changeset deletion
* change
* fix unit test
* type disable
* fix
* cset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-13 17:14:07 -08:00
aliabid94
65437ce832
Improve File Explorer performance ( #7337 )
...
* changes
* add changeset
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* Update gradio/components/file_explorer.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/components/file_explorer.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/file_explorer_component_events/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-13 16:51:47 -06:00
Abubakar Abid
dff410955e
Retain dropdown value if choices have been changed ( #7401 )
...
* dropdown choice bug
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-12 15:52:54 -08:00
Hannah
46b45683e1
Allow applying @media
, @keyframes
and @import
in custom CSS ( #7395 )
...
* allow @media and @keyframes in custom CSS
* add changeset
* demo tweak
* formatting
* fix
* tweak
* add .dark test
* formatting
* add font-face test
* support @import statements
* add changeset
* tweak
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-13 00:39:30 +01:00
Freddy Boulton
a4a990ca05
Custom component 2e2 test ( #7394 )
...
* e2e test
* Add requirements
2024-02-12 10:06:22 -08:00
Dawood Khan
17fb116492
Fixes gr.Markdown() does not render spaces around links correctly ( #7361 )
...
* fix
* remove console
* add changeset
* fix
* storybook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-11 13:16:50 -05:00
pngwn
bb4126cc24
chore: update versions ( #7338 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-09 22:15:34 -08:00
Hannah
4dc9ffbf70
Store gr.Accordion
's open
value ( #7375 )
...
* store open as writeable val
* add changeset
* add e2e test
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-10 00:09:59 +01:00
pngwn
a7fa47a175
ensure Dataframes in background tabs are visible when the tab is selected ( #7354 )
...
* add mutation observer to track visibility changes of tabs
* add changeset
* add changeset
* update console.log statements in Svelte component for debugging purposes
* remove unused table_width variable and update console logs in virtual table component
* move visibility check to table
* try dom rect bindings instead
* update binding of viewport_box to correctly calculate viewport height
* remove console.log statements and unused code
* add changeset
* add changeset
* remove unnecessary assignment of t_width in component
* update svelte-check to make ci pass
* update dependencies for happy-dom and vitest
merged from upstream
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 18:23:05 +00:00
Shubham raj
f35f615e33
Added remove button for every file in file preview, to remove individual file in gr.File() ( #7299 )
...
* Add remove button for every file in file preview
* add changeset
* tweak remove file button
* format
* dispatch change event
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-09 08:55:47 -08:00
Yuichiro Tachibana (Tsuchiya)
7b10d97b0f
Remove the @gradio/wasm
dependency from @gradio/gallery
that is not used ( #7369 )
...
* Remove the `@gradio/wasm` dependency from `@gradio/gallery` that is not used
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 23:44:12 +09:00
Adrian Ehrsam
c1a7ea7c0c
Add SQL Support for gr.Code ( #7328 )
...
* add sql language support, Fixes https://github.com/gradio-app/gradio/issues/7316
* format
* add missing languages
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-02-09 12:28:12 +00:00
Hannah
2244059cdb
Ensure CSS .dark
rule selectors are applied ( #7355 )
...
* fix ignored dark rules
* add changeset
* add changeset
* tweak
* test threshold
* test threshold again
* remove threshold and fix story
* test
* story tweak
* story test
* separate undo/redo from large interaction story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 00:39:40 +01:00
Hannah
9905e00e42
fix story again ( #7357 )
2024-02-08 21:52:33 +01:00
Hannah
b25f76c5df
increase threshold ( #7356 )
2024-02-08 17:31:16 +00:00
Abubakar Abid
49d9c48537
[WIP] Refactor file normalization to be in the backend and remove it from the frontend of each component ( #7183 )
...
* processing
* add changeset
* changes
* add changeset
* add changeset
* changes
* changes
* clean
* changes
* add changeset
* add changeset
* root url
* refactor
* testing
* testing
* log
* logs
* fix
* format
* add changeset
* remove
* add root
* format
* apply to everything
* annoying fix
* fixes
* lint
* fixes
* fixes
* fixes
* fix tests
* fix js tests
* format
* fix python tests
* clean guides
* add changeset
* add changeset
* simplify
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-07 14:39:33 -08:00
pngwn
0db7272694
Fix lite tests ( #7342 )
...
* fix-tests
* fix-tests
* fix-tests
* fix-tests
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-07 14:57:52 +00:00
Yuichiro Tachibana (Tsuchiya)
cccab27fe8
E2E tests for Lite ( #6890 )
...
* Set up E2E test config for lite
* Use the same Page instance for all the tests in the case of lite
* Fix reading demo files
* Fix config
* Install requirements based on `requirements.txt`
* Add the "loaded" event dispatched from the main component to make a promise wait for the compoonent to be loaded
* Refactor js/tootils/src/index.ts
* Add testIgnore for lite
* Fix chatbot_multimodal.spec.ts
* Stop raising an exception when trying to cache examples but just show warning
* Update comment
* Mark the test slow when the page is initialized in it
* Add logs
* Set timeout
* add changeset
* Add the CI file .github/workflows/test-lite.yml
* Add E2E testing for Lite to the test-functional job
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 23:46:54 -08:00
pngwn
2382f741ff
chore: update versions ( #7177 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-06 15:19:29 -08:00
aliabid94
edfd05d18d
Expand chatinterface to full window height ( #7313 )
...
* changes
* changes
* add changeset
* changes
* changes
* changs
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 13:42:30 -08:00
Yuichiro Tachibana (Tsuchiya)
b3a9c83095
Lite: Wasm-compatible Model3D ( #7315 )
...
* Make Model3DUpload.svelte Wasm-compatible
* Make Model3D.svelte Wasm-compatible
* add changeset
* Create <Canvas3D /> and use it from <Model3D /> and <Model3DUpload />
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 13:22:25 -08:00
Hannah
733ca266bb
Ensure examples Images displays as expected ( #7325 )
...
* Tweak image size
* add changeset
* add changeset
* fix broken story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-06 21:02:18 +01:00
Hannah
200e2518e4
Add gr.Image
interaction test + gr.ImageEditor
interaction test improvement ( #7309 )
...
* add source selection interaction story
* add changeset
* add source selection e2e test
* add changeset
* add diff threshold to imageeditor story
* remove redundant <button>
* add changeset
* typo
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-06 11:20:20 -08:00
Abubakar Abid
aa97a5e33a
Improvements to API Docs ( #7292 )
...
* escape triple quotes when creating space.py for custom components
* Improve API docs
* add changeset
* revert
* fix
* changes
* add changeset
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-05 10:29:03 -08:00
renovate[bot]
e5344ba0cd
chore(deps): update dependency marked to v12 ( #7298 )
...
* chore(deps): update dependency marked to v12
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-05 09:01:19 -08:00
Abubakar Abid
d7095c4699
Number example fix ( #7294 )
...
* fix
* add changeset
* fix flaky functional test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-05 08:55:10 -08:00
Freddy Boulton
2e6672c815
Allow start/pause of streaming image input. Only access the webcam while it's needed ( #7228 )
2024-02-02 18:26:44 +00:00
Cody DeHaan
a3aa22f6f0
Adjust Value to Fix .Label Display ( #7276 )
...
* Bug fix
* add changeset
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-02 18:16:04 +00:00
Hannah
757dba66ba
Add show_label
check to gr.Dataframe
( #7283 )
...
* add show_label check and story test
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-02 09:45:59 -08:00
Hannah
5181957706
Add mobile Chromatic tests ( #7222 )
...
* Add mobile story tests
* add layout stories
* add changeset
* configure viewports
* formatting
* Remove tablet stories + add plot story
* add changeset
* add mobile tests to layout stories
* fix story
* fix story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-02 14:21:48 +00:00
Arian Ahmadinejad
fdd15213c2
chore: Change time format ( #7274 )
...
* fix: typos
* fix: remove newlines from latex delimiters
* add changeset
* chore: change time format to HH:MM:SS
* add changeset
* Revert "fix: remove newlines from latex delimiters"
This reverts commit cebfabb51c
.
* fix: remove accidental changes from different pr
* add changeset
* chore: change time format for player to use global formatting function
* fix: remove pipfile
* chore: use global time formatting for static video player
* chore: change to snake_case
* change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-01 13:23:19 -08:00
Aarni Koskela
05d8a3c803
Update ruff to 0.1.13, enable more rules, fix issues ( #7061 )
...
* add changeset
* Update ruff to version 0.1.13
* Correct ruff target version
* Enable more Ruff rules and fix issues
* Enable ARG and fix issues
* Enable PL lints, fix issues
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 11:32:40 -08:00
Abubakar Abid
18937564ab
Small cleanups of Code
component ( #7240 )
...
* small cleanups of code component
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-31 14:47:18 -08:00
Dawood Khan
c3e61e4f70
Few File component drag and drop ( #7141 )
...
* file comp fixes
* add changeset
* test fixes
* undo pr fixes
* add changeset
* file type fix
* format
* final fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-31 16:23:11 -05:00
Abubakar Abid
3c8c4ac2db
Document the gr.ParamViewer
component, and fix component preprocessing/postprocessing docstrings ( #7116 )
...
* add paramviewer to docs
* add changeset
* type fixing
* round to
* format
* revert to make test pass
* remove msg
* add changeset
* annotated image
* annotated image
push
* audio
* changes
* changes
* audio
* audio
* changes
* remove borders from code
* working
* fixes
* add changeset
* formatting
* build fix
* changes
* ls
* more components
* format
* some more
* more
* component
* plots
* buttons
* simple backend
* number
* more
* more
* simple templates
* format
* fixes
* backend
* fix tests
* fix test
* fixes
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-01-31 09:36:21 -08:00
Freddy Boulton
cae05c05ec
Fix single file upload display ( #7221 )
...
* Fix bug + add buggy story
* add changeset
* story fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-01-30 15:05:33 -05:00
Aileen Villanueva Lecuona
24157a3602
add background color based on the OS mode ( #7117 )
...
* add background color based on the OS mode
* add changeset
* use static css instead
* format
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
2024-01-30 11:40:21 -08:00
Hannah
3b8dfc684d
Add visible
check to Tab ( #7220 )
...
* add visible check to TabItem
* add changeset
* remove hide class
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-30 18:34:53 +00:00
Hannah
faead1403c
Show label in interactive image editor ( #7219 )
...
* show label in interative image editor
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-30 15:19:05 +00:00
Shubham raj
aab2a75f06
Allow selecting texts in dataframe cells ( #7154 )
...
* bugfix: Enable user-select for texts in editable cell
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 16:51:46 -08:00
Abubakar Abid
8dd6f4bc19
Handle the case where examples is null
for all components ( #7192 )
...
* handle null examples
* add changeset
* add changeset
* lint
* merge conflict
* fixes
* add changeset
* stories
* feedback
* examples
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-29 16:51:22 -08:00
Hannah
e3217b4186
Amend audio waveform colour ( #7207 )
...
* change waveform color option types
* tweak waveform color setting
* snake case tweak
* add changeset
* tweak BE test
* tweak component BE test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 19:03:38 +01:00
Hannah
efacc7d5cb
Ensure open
reactivity in Accordion ( #7208 )
...
* ensure `open` reactivity
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-29 18:59:41 +01:00
pngwn
572e360fff
Upload tweak ( #7206 )
...
* make uploadprogress display consistently in custom components
* add engines
* add changeset
* add changeset
* bump ci pnpm version
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 14:53:54 +00:00
Abubakar Abid
e418edd011
Fix SimpleImage package json ( #7205 )
...
* fix simple image package json
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-29 05:55:42 -08:00