Commit Graph

6298 Commits

Author SHA1 Message Date
pngwn
1e5e787999
chore: update versions (#7426)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-16 12:28:13 -08:00
Abubakar Abid
f16d03dfba fix patch 2024-02-16 11:26:43 -08:00
Hannah
f191786791
Improve responsiveness of gr.Audio() controls (#6991)
* improve audio container in mobile

* check for denied device access

* add changeset

* add changeset

* tweak controls placements

* add changeset

* add viewport modes to test

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-16 10:57:12 -08:00
Abubakar Abid
3e4e680a52
Fixes to the .key_up() method to make it usable for a dynamic dropdown autocomplete (#7425)
* fixes

* changes

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-02-16 10:21:32 -08:00
Abubakar Abid
ba747adb87
Make fix in #7444 (Block /file= filepaths that could expose credentials on Windows) more general (#7453)
* test routes

* chagne

* add changeset

* add changeset

* type fixes

* fix typing issues

* typed dict

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 18:09:31 +00:00
aliabid94
f52cab634b
Dispatch change event for file explorer (#7441)
* changes

* add changeset

* changes

* changes

* fix test reqs in functional tests

* fix notebooks

* fix notebooks

* fix test flake

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-16 12:03:10 -06:00
pngwn
805a5136a1
fix test reqs in functional tests (#7454) 2024-02-16 17:27:07 +00:00
pngwn
b8f534ed02
fix (#7450) 2024-02-16 15:45:32 +00:00
pngwn
612fa6325c
document CI (#7393)
* document CI

* update documentation note about immortality of non-main documentation in S3

* Apply suggestions from code review

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

* technical stuff

* add more stuff

* fix

* Update testing-guidelines/ci.md

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

* Apply suggestions from code review

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

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-16 15:24:38 +00:00
Abubakar Abid
4faf8a7e86
Block /file= filepaths that could expose credentials on Windows (#7444)
* fix for windowss

* path

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 15:48:06 -08:00
Freddy Boulton
c88290d90a
WIP: Optimize /file route (#7416)
* Improve File route

* file route fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 21:50:13 +00:00
renovate[bot]
a6371bbcae
chore(deps): update dorny/paths-filter action to v3 (#7418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 16:04:27 -05:00
Abubakar Abid
e329f1fd38
Prevent timing attacks to guess Gradio passwords (#7440)
* secure timing

* add changeset

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 12:59:08 -08:00
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
Ari Roffe
aa0d98cdc7
Update 02_controlling-layout.md (#7434) 2024-02-15 15:50:42 +01:00
Freddy Boulton
fb1f6befad
Run pre/post processing in threadpool (#7327)
* Add code

* Add code

* Add code

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 19:51:58 -05: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
aliabid94
314ccfa781
Fix File Explorer interactivity (#7417)
* changes

* add changeset

* Update gradio/components/file_explorer.py

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

* revert file

* add changeset

---------

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-14 14:44:16 -06: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
Abubakar Abid
4ab399f40a
Allow config to include non-pickle-able values (#7415)
* fixes

* lint

* add changeset

* route utils

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 17:43:41 +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
32b317f24e
Set root correctly for Gradio apps that are deployed behind reverse proxies (#7411)
* testing

* add changeset

* test

* backend

* fix

* add unit tests

* testing

* remove check

* add changeset

* trying something

* add changeset

* override

* add changeset

* fix

* fix

* clean

* lint

* route utils

* add changeset

* changes

* add changeset

* test

* revert testing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 16:14:02 +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
547517b74e
Small PR to move generate_notebooks.py to scripts folder (#7400)
* move generate_notebooks.py to scripts folder

* generate notebooks

* final? fix
2024-02-13 09:05:19 -08: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
Abubakar Abid
fa8225d24d
Use updated component in postprocess() (#7402)
* component update

* add changeset

* add test

* lint

* refactor

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-12 22:05:31 +00:00
renovate[bot]
5b1ab3727c
chore(deps): update typescript-eslint monorepo to v7 (#7403)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-12 13:47:02 -08:00
YuryYakhno
b5c74ffadb
Fix HTTPX package crash for some values of "article" parameter in the interface (#7389) 2024-02-12 13:44:08 -08:00
Ari Roffe
10951105b8
Upgrade from numpy's Legacy Random Generator to Random Generator (#7397)
* Update run.py

* replace all np.random.random with new generator code

* notebooks

---------

Co-authored-by: aroffe99 <ari.roffe@morningstar.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-12 10:20:46 -08:00
Ari Roffe
0dccf825c4
Add step parameter to slider (#7399)
* Add step parameter to slider

* fix demos

* changes

* tweaks to demo

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-12 10:06:46 -08: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
Freddy Boulton
6dfd40fc6b
Make set_documentation_group a no-op (#7377)
* push

* Use (

* add changeset

* add changeset

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-09 16:53:21 -08:00
Abubakar Abid
7f19ba272c
Stop caching root url (#7374)
* stop caching root

* add changeset

* add changeset

* add changeset

* cleanup

* config

* changes

* routes

* routes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 15:26:27 -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
Abubakar Abid
7302a6e151
Fix gr.load for file-based Spaces (#7350)
* changes

* add changeset

* fixes

* changes

* fix

* add test

* add changeset

* improve test

* Fixing `gr.load()` part II (#7358)

* audio

* changes

* add changeset

* changes

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Delete .changeset/fresh-gifts-worry.md

* add changeset

* format

* upload

* add changeset

* changes

* backend

* print

* add changeset

* changes

* client

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 11:24:00 -08: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
pngwn
d56bb28df8
fix spaces comment and remove echos (#7373)
* remove unnecessary condition for deployment workflow

* remove unnecessary echo statements in GitHub Actions workflows

* fix website ci

* add condition to only run comment-spaces-start workflow if changes workflow outputs 'should_run' as 'true'
2024-02-09 18:01:44 +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
Yuichiro Tachibana (Tsuchiya)
1e68561167
Update Pydantic patch for Lite that emulates PydanticV2 API using V1 (#7365)
* Update Pydantic patch for Lite that emulates PydanticV2 API using V1

* add changeset

* Tell the static type checker to ignore the patched Pydantic classes

* Remove `type: ignore`

* lint

* Delete model_config in the patch

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 23:43:46 +09:00
pngwn
a6d9f3bb3c
chore: update user mentions and log ci (#7371) 2024-02-09 13:52:12 +00: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