Commit Graph

6504 Commits

Author SHA1 Message Date
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
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
Abubakar Abid
db27df36d2
Escape triple quotes when creating space.py for custom components (#7290)
* escape triple quotes when creating space.py for custom components

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-05 10:06:34 -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
Davi Rodrigues
87eedf4e70
fix: Code component not accepting Callable as type on value (#7304) 2024-02-05 08:48:15 -08:00
Aarni Koskela
0fddd0f971
Determine documentation group automatically (#7062) 2024-02-05 17:25:34 +04: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
cswamy
0d36ac05aa
Fixes issue with datatype setting in gr.Dataframe. Setting no longer dependent on col_count (#7286)
* fixed

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-02 09:34:16 -08:00
pngwn
a5feb1c8cb
tag and push tags during publish (#7285) 2024-02-02 16:35:36 +00: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
cswamy
daaaf9593e
Fixes issues related to gr.Dataframe receiving an empty dataframe (#7257)
* fixed

* tested and formatted

* add changeset

* add changeset

* fixes

* revert

* dataframe

* clean

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-01 12:56:43 -08:00
Aarni Koskela
7ea8336709
Remove flag_dir from read_from_flag() (#7059)
* Remove flag_dir from read_from_flag()

* fix

* remove unnecessary ruff exception

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-01 12:24:26 -08:00
pngwn
59c50811fb
improve visual ci config (#7275)
* fix

* fix
2024-02-01 20:09:01 +00:00
pngwn
d901b7c807
fix (#7273) 2024-02-01 19:39:12 +00: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
renovate[bot]
aeb0541423
Update dependency npm-run-all2 to v6 (#7271)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-01 11:25:17 -08:00
renovate[bot]
84b9651d1c
Replace dependency npm-run-all with npm-run-all2 ^5.0.0 (#7263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-01 11:08:31 -08:00
Aarni Koskela
dec6a715d6
Fix PIL imports (#7236)
* Only do PIL.Image.init() fix once (image_utils is always imported when dealing with images)

* Normalize import style for `PIL.Image`

Follows up on #7116

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-01 10:57:57 -08:00
Aarni Koskela
5d24c356f8
CI: update GitHub Actions versions (#7249)
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-01 18:14:41 +00:00
pngwn
9fa0a1ce1c
fix (#7268) 2024-02-01 17:08:08 +00:00
pngwn
84249043b4
fix timeout (#7266) 2024-02-01 14:23:59 +00:00
pngwn
f1e1c2083c
Fix ci cache (#7262)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 13:27:54 +00:00
pngwn
e983c1c80e
Fix ci cache (#7261)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

* tweaks

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 13:15:15 +00:00
pngwn
5df96c5b09
Fix ci cache (#7260)
* fix

* fix

* fix

* format tweaks

* add changeset

* tweaks

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 13:07:03 +00:00