Commit Graph

6331 Commits

Author SHA1 Message Date
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
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
Freddy Boulton
7e9b206a14
Stop using deprecated pydantic config class and filter gradio warnings from tests (#7333)
* Warnings filter

* 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-07 11:13:48 -05:00
pngwn
e3b302dc01
fix again (#7346) 2024-02-07 15:41:20 +00:00
pngwn
62488923ac
fix ci (#7341)
* fix ci

* disable lite tests
2024-02-07 15:35:29 +00:00
Abubakar Abid
b95d0d043c
Allow setting custom headers in Python Client (#7334)
* add headers

* add changeset

* fix

* test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-07 07:19:53 -08:00
pngwn
5b45a162b3
Fix lite tests (#7343)
* fix-tests

* fix-tests

* fix-tests

* fix-tests

* fix-tests
2024-02-07 15:05:55 +00: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
Abubakar Abid
8bb0ce2e40
Hotfix for: stt_or_tts demo (#7332)
* fix

* add changeset

* add changeset

* notebooks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-06 22:34:02 +00: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
Abubakar Abid
aea14c4496
Refactor Inference API and rename it to Serverless Inference Endpoints (#7295)
* changes

* changes

* add changeset

* add changeset

* changes

* all pipelines

* format

* clean

* add examples

* fix audio classification

* format

* format

* fix all pipelines

* fixes

* fixes

* fix tabular

* add changeset

* added future

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-06 12:27:44 -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
Yuichiro Tachibana (Tsuchiya)
b25e95e164
Fix processing_utils.save_url_to_cache() to follow redirects when accessing the URL (#7322)
* Fix `processing_utils.save_url_to_cache()` to follow redirects when accessing the URL

* add changeset

* follow more redirects

* format

* add changeset

* add test

* validate urls

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 19:46:20 +00: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
nopperl
87d510580e
Handle httpx.InvalidURL when setting non-URL article strings (#7319)
* Handle httpx.InvalidURL for non-URL article strings

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-06 18:27:57 +00:00