Commit Graph

5613 Commits

Author SHA1 Message Date
aliabid94
9137f1caa0
Speed up gradio.launch, especially when there's no internet (#4905)
* changes

* changes

* changes

* Revert "changes"

This reverts commit cbebf39157.

* lint

* fix tests

* an

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-14 15:45:52 -04:00
pngwn
9641c216e7
remove three types (#4923) 2023-07-14 18:03:34 +01:00
aliabid94
3474122cb3
Fix API page code snippets in safari (#4924)
* changes

* changes
2023-07-14 09:53:42 -07:00
renovate[bot]
b39bc26644
Update typescript-eslint monorepo to v6 (#4865)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-14 12:31:53 -04:00
pngwn
3a4b1d8f8b
move all of the chatbot component in to js/chatbot (#4900)
* changes

* fix test

* changes
2023-07-13 17:41:47 +01:00
Ali Abdalla
315d7f4283
Add gr.Group to docs (#4913)
* add group

* exclude js/_website from workflow and add echo pr test

* fix path / remove echo

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-13 17:28:30 +03:00
Freddy Boulton
431140b903
Fix bug related to preprocessing URLs for video (#4904)
* Support urls

* Add unit test

* CHANGELOG

* Bump client version

* use url_like
2023-07-12 21:46:54 -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
Abubakar Abid
9f072796a5
Pinning dependencies in requirements.txt (#4885)
* requirements

* pins

* clogs

* python multipart

* python multipart

* clogs

* clog
2023-07-12 21:03:53 -04:00
Hannah
d48f463cd4
Update chromatic job with build details (#4856)
* move chromatic to push event and change message

* output test

* test

* tweak

* get PR for push event

* changes

* omit forks and check label using gh action

* tweak

* workflow tweaks

* test tweak

* remove test output

* add pending comment

* tweak message

* newline

* only run chromatic workflow if pushed files are in js folder

* test

* remove test

* update workflow path filter with theme files

Co-authored-by: pngwn <hello@pngwn.io>

* add chromatic workflow to path filter

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-12 18:21:39 +01:00
Freddy Boulton
9787d0284a
Use tempdir for all python unit tests tests (#4882)
* Use tempdir for all tests

* Disable telemetry automaticall for client

* Use configuration

* Push js

* Final comments

* Undo change
2023-07-12 11:19:39 -04:00
Freddy Boulton
59b492a082
Fix loading spaces with api_name=False (#4886)
* Fix api_name=False

* Add more to test
2023-07-12 11:09:06 -04:00
pngwn
def42d0669
update pr comment (#4893) 2023-07-12 11:53:14 +01:00
pngwn
b6480c3903
update pr comment (#4892) 2023-07-12 11:44:20 +01:00
pngwn
fd3837df3c
add wheel install instructions to PR comment (#4890)
* change

* change

* change
2023-07-12 11:28:24 +01:00
Freddy Boulton
4bf301324b
Lint website (#4879) 2023-07-11 21:00:52 -04:00
Abubakar Abid
abd0ced3db
Fixes .change() in Video, Audio, Image (#4793) 2023-07-11 16:56:46 +01:00
Abubakar Abid
a82eee5733
Quick fixes to video test (#4870)
* push

* test components

* remove test file

* added monkeypatch
2023-07-11 10:29:14 -04:00
Ali Abdalla
3e9f5407ae
fix path to gradio.svg (#4877) 2023-07-11 13:21:44 +03:00
Freddy Boulton
c17b91e114
Fix flaky e2e test (#4864)
* Split test into two

* Don't use await

* Dont use await
2023-07-10 15:53:09 -04:00
Ali Abdalla
5d080cdb74
Fix component events matrix in docs (#4863)
* fix events matrix

* regenerate json

* remove ordered_events

* remove hardcoded events

* mistake

* add end to docs
2023-07-10 20:52:14 +03:00
Freddy Boulton
6436e4ea5b
Refactor some python tests (#4834)
* Refactor

* Remove tests

* Fix image file

* trigger ci

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-10 13:40:46 -04:00
Freddy Boulton
cd551f70dd
Bump version (#4861) 2023-07-10 12:32:49 -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
sweep-ai[bot]
f5e057b06e
Create sweep.yaml config file (#4854)
Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
2023-07-10 10:37:23 -05:00
Abubakar Abid
8613a52573
Quick update for the docstring in gr.Chatbot (#4860)
* push

* docstring

* remove file

* chatbot

* tweak
2023-07-10 10:35:09 -05:00
Freddy Boulton
34d5053076
Fire File change event when updated programmatically (#4811)
* Change

* Add code

* remove comments

* Add changelog

* remove test

* Fix typo
2023-07-10 11:29:34 -04:00
Dawood Khan
504c9d9d06
Add hyperlinks to download files in chatbot (#4848)
* add file links

* changelog
2023-07-10 10:34:01 -04:00
Yuichiro Tachibana (Tsuchiya)
76acf3cb0b
Lite: Fix the markdown-it package name spec on the Wasm worker (#4846)
* Fix the package name spec of markdown-it on the Wasm worker

* Add changeset
2023-07-10 10:03:21 +01:00
Yuichiro Tachibana (Tsuchiya)
f0150c6260
Lite: unload local modules before executing Python scripts (#4826)
* Unload the local modules before re-executing a Python script

* Add changeset
2023-07-10 10:03:09 +01: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
Yuichiro Tachibana (Tsuchiya)
7dbfa228f7
Lite: PoC of an online editor (#4809)
* Add a Svelte app for local development

* Update the dev editor to deal with multiple files

* Rename the File type

* Rename entities

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-10 10:00:05 +01:00
Freddy Boulton
1c9ebdea5b
Pydantic V2 hotfix and patch release (#4835)
* Update models

* CHANGELOG

* Bump changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-07 16:13:09 -04:00
aliabid94
280b5697eb
Mobile queue fixes (#4742)
* changes

* changes

* changes

* changes

* changes

* Styling for error, warning and info toasts (#4603)

* create abstract toast component for info/warning/error

* add icons

* add light mode theming

* add theme mode check and dark mode styles

* update theme_mode on update

* clean up render of toast content

* replace dynamic css vars with toast type css selectors

* tweak colours

* change error pill border colour to align with toasts

* formatting

* fix failed test

* rename icon files and clean up css

* changes

* changes

* changes

* changes

* changes

* changes

* chanegs

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-07 14:39:06 -05:00
Ali Abdalla
059d77eb98
Fix broken images in guides and website meta tags (#4830)
* testing meta tags

* fix broken images in guides
2023-07-07 20:51:42 +03:00
Ali Abdalla
9363328297
Fix Misleading Description for Duplicate Button (#4832)
* reword docstring for duplicatebutton

* formatting
2023-07-07 20:09:54 +03:00
Freddy Boulton
b4173886ba
Remove css (#4831) 2023-07-07 12:44:16 -04:00
Ali Abdalla
2883a12c1f
Fix Changelog Navbar in Website (#4828)
* working navbar for changelog

* testing meta tags

* nvm
2023-07-07 19:09:08 +03:00
Freddy Boulton
9b56057a98
Add gr.ClearButton component demo (#4819)
* add code

* Add notebook

* Fix typos

* Remove css

* Add notebook
2023-07-07 11:51:18 -04:00
Hannah
3208730b06
add sb and chromatic to readme (#4829) 2023-07-07 16:29:23 +01:00
renovate[bot]
d2e545a066
chore(deps): update all non-major dependencies (#4807) 2023-07-07 07:03:31 +01:00
Abubakar Abid
1b3e6ab2a5
v3.36.0 (#4815)
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-07-06 21:16:11 -05:00
Freddy Boulton
0f8e25cd65
Fix gr.Warning/gr.Info when using generators + interface (#4823)
* Fix bug

* Fix notebook

* Add test

* Lint backend
2023-07-06 19:37:20 -05:00
Abubakar Abid
c271a199dd
Install gradio from source for chromatic (#4816)
* Install gradio from source for chromatic

* switch order

* venv
2023-07-06 19:36:26 -05:00
aliabid94
5dc445b08f
Prevent broken scroll_to_output in Spaces (#4822)
* changes

* c

* change

* changes
2023-07-06 19:25:38 -05:00
Freddy Boulton
4b7cb2a436
Add storybook for Gallery (#4818)
* Add stories

* Add show_share_button story + label

* Fix typo
2023-07-06 17:31:17 -05:00
Ali Abdalla
df804ca281
Fixing redirects in website (#4813)
* testing redirect in vercel

* adding all redirects to vercel config
2023-07-06 22:21:40 +03:00
Hannah
530e4ef164
Add border to selected image in gr.Gallery (#4790)
* add border to selected image and restore outline prop

* changelog

* amend borders for consistency in light + dark
2023-07-06 19:50:38 +01:00
pngwn
7fa5e766ce
format (#4810) 2023-07-06 18:43:49 +01:00
Aarni Koskela
87e14e38b5
decode_base64_to_image: don't crash if EXIF data is broken (#4764)
* decode_base64_to_image: don't crash when if EXIF data is broken

* Simplify EXIF transposition to not read the EXIF data twice

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-06 10:35:08 -05:00