Commit Graph

263 Commits

Author SHA1 Message Date
Freddy Boulton
b7072b1535
Fix blocks_kitchen_sink and streaming_stt demos (#4699)
* Add code

* Add json file

* Remove streaming_stt demo

* Undo generate_notebooks

* Add blocks_kitchen_sink
2023-06-27 20:55:34 -04:00
renovate[bot]
7266ca60ea
chore(deps): update dependency @fullhuman/postcss-purgecss to v5 (#4612)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-21 19:19:42 +01:00
Freddy Boulton
69f36f9853
Place components separate files (#4487)
* Move files

* Add missing

* Fix tests

* Merge main

* Lint

* Remove literal

* add documentation decorator

* lint

* Remove typing_extensions

* Fix documentation tag

* ClearButton to components

* Add file

* import
2023-06-14 11:26:10 -04:00
Shavit
1fc8c5fd8c
Throttle scroll event (#4158)
* Throttle scroll event

This decreases the amount of function calls when scrolling through the documentation website.

* fix themes base

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-06-02 18:22:47 +04:00
Abubakar Abid
1c8cb5ebf1
v3.33.1 + Guide on setting up Gradio behind nginx... (#4379)
* nginx guide

* delete 3.33.0

* version

* unindent
2023-06-01 20:23:39 -07:00
Ali Abdalla
a43531cc4b
Remove old versioned docs and fix repo classification (#4362)
* remove old versioned docs

* delete versioned docs when new one is created

* ignore website dir in linguist calc

* upload and download versioned docs

* modify github action

* remove gitattributes file

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 18:38:53 -07:00
Ali Abdalla
8f0bd10be7
Fix Base parent in Docs, add Group (#4391)
* fix base parent

* add group to docs

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 16:23:17 -07:00
github-actions[bot]
f4f3e2e597
New Version Docs (#4397)
* [create-pull-request] automated change

* Update temporary_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 16:13:30 -07:00
github-actions[bot]
38607c9967
New Version Docs (#4296)
* [create-pull-request] automated change

* Update v3.32.0_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-22 12:01:15 +09:00
github-actions[bot]
810cff7922
[create-pull-request] automated change (#4250)
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
2023-05-17 20:43:41 +04:00
pngwn
963c2d26ee
3712 js client (#3899) 2023-05-12 16:22:25 +01:00
github-actions[bot]
e3296378c6
New Version Docs (#4172)
* [create-pull-request] automated change

* Update v3.30.0_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 15:32:22 -05:00
Ali Abdalla
8e19e894a9
Fix website build issue (#4142)
* upgrade pnpm

* changelgo
2023-05-10 18:31:44 +04:00
github-actions[bot]
030a49b9eb
New Version Docs (#4131)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-05-09 23:16:07 +04:00
github-actions[bot]
029ded370f
New Version Docs (#4069)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-05-05 01:30:43 +04:00
github-actions[bot]
5d0b0da714
[create-pull-request] automated change (#4059)
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 10:46:08 -05:00
github-actions[bot]
d58728aef5
New Version Docs (#4027)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-05-01 20:22:14 +04:00
github-actions[bot]
9d3b5d7bcc
New Version Docs (#4004)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-28 12:39:27 +04:00
Aarni Koskela
d25226f704
Use f-strings where possible (#3984)
* Use f-strings where possible

Semi-automated using ikamensh/flynt

* Update gradio/utils.py

* Update gradio/interface.py

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-27 16:09:50 -04:00
Simon Duerr
6e7abf8645
make use of gr. consistent (#3901)
* make use of gr. consistent

* add changelog

* Update CHANGELOG.md

* fix digit_classifier notebook

* lint

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-04-19 15:55:37 -04:00
github-actions[bot]
0aa77f3b14
New Version Docs (#3865)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-14 20:53:21 -07:00
github-actions[bot]
fbe55216ba
New Version Docs (#3850)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-14 11:14:23 -04:00
github-actions[bot]
0b725fbac1
[create-pull-request] automated change (#3829)
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-04-12 02:18:09 -07:00
Abubakar Abid
5f8186218c
Document python client in gradio.app/docs (#3764)
* document py client

* more changes

* update docs

* changes

* fix tests

* formatting

* stash

* fix tests

* documentation

* more docs

* gradio client

* changes

* rework documentation

* add to docs

* modify dockerfile

* gradio client

* address feedback

* formatting

* gradio client version

* fix tests

* tweaks to website

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-06 12:58:42 -07:00
Abubakar Abid
dbc61db4da
import (#3742) 2023-04-03 17:44:32 -07:00
Abubakar Abid
f50d6043db
Fix missing docstrings (new PR) (#3740)
* Move documentation for _js into docstring, not a stray comment

* Add missing argument docstrings (and remove non-existent ones)

* Add changelog entry

* updated docstrings

* changelog

* contributors

* changelog

* formatting

* removed _js

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-04-03 16:44:10 -07:00
Aarni Koskela
ef3862e075
Switch linting to Ruff (#3710)
* Sort requirements.in

* Switch flake8 + isort to ruff

* Apply ruff import order fixes

* Fix ruff complaints in demo/

* Fix ruff complaints in test/

* Use `x is not y`, not `not x is y`

* Remove unused listdir from website generator

* Clean up duplicate dict keys

* Add changelog entry

* Clean up unused imports (except in gradio/__init__.py)

* add space

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 15:48:18 -07:00
github-actions[bot]
ae6b49a1c3
New Version Docs (#3720)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-03-31 09:26:59 -05:00
github-actions[bot]
13682c7bbc
New Version Docs (#3715)
* [create-pull-request] automated change

* fix changelog

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-30 16:55:46 -07:00
Ali Abdalla
0df03a051f
Copy everything in website Dockerfile, fix build issues (#3659)
* dockerfile

* copy everything from repo

* correct dir

* changelog
2023-03-28 00:59:39 -07:00
pngwn
ae4277a9a8
move files (#3605)
* move files

* commit the rest of the files

* fix lockfile

* fix workflow

* fix type errors

* fix tests

* only run ci when certain files change

* run correct test command in ci

* version

* fix pypi script

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -07:00
github-actions[bot]
b9f0822510
New Version Docs (#3557)
* [create-pull-request] automated change

* empty

* [create-pull-request] automated change

* trigger ci

* Add 3.23.0 docs

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
2023-03-21 11:23:26 -04:00
Freddy Boulton
8ec2b0b98a
Sharing themes (#3428)
* Rebase

* Remove build hooks

* Working implementation

* Add semver + unit tests

* CHANGELOG

* Add to docs

* Rename push_to_hub and fix typos

* Fix gallery

* Fix typo

* Address comments + tests

* Update gradio/themes/app.py

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

* Import Base as Theme. Use DefaultTheme() as fallback

* Fix types

* Make version and token truly optional

* Add version dropdown + tests

* trigger

* Support private themes and org_names

* Fix org_name typo

* Update wheel

* Fix font loading and dumping

* fixing tests

* fix tests

* formatting

* version

* remove requirements

* remove requirements

* formatting

* fix tests

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 20:15:02 -07:00
github-actions[bot]
27be008d58
New Version Docs (#3509)
* [create-pull-request] automated change

* trigger rerelease

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 17:54:22 -07:00
github-actions[bot]
8e59eb9f06
New Version Docs (#3505)
* [create-pull-request] automated change

* trigger refresh

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 13:55:31 -07:00
github-actions[bot]
d2a0bd02f5
New Version Docs (#3457)
* [create-pull-request] automated change

* trigger

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-13 18:29:42 -07:00
Ali Abdalla
f86b6445f8
Fix css issue with spaces logo (#3422)
* override css

* changelog
2023-03-08 15:37:56 -08:00
github-actions[bot]
0e0d1c181d
New Version Docs (#3392)
* [create-pull-request] automated change

* trigger ci

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-06 12:07:39 -08:00
github-actions[bot]
fba1bae3a5
New Version Docs (#3376)
* [create-pull-request] automated change

* empty commit

* [create-pull-request] automated change

* empty commit

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-03-03 18:43:05 -08:00
aliabid94
02fb8f5a1f
Updated chat ui (#3370)
* test

* changes

* chagnes

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

* changes

* Update demo/chatbot_multimodal/run.py

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

* Update demo/chatbot_simple_demo/run.py

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

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-03 18:17:48 -08:00
Ali Abdalla
9682bc82db
Gradio Status Page (#3331)
* add status page to error message

* changelog

* link to status page on website

* move link to the right
2023-02-27 20:47:04 -08:00
github-actions[bot]
ab25bcc967
[create-pull-request] automated change (#3298)
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-02-23 11:35:58 -08:00
github-actions[bot]
c3a40dabf5
New Version Docs (#3239)
* [create-pull-request] automated change

* tweak

* tweak

---------

Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-19 12:52:33 -06:00
Ali Abdalla
1bc817a600
Sort components in docs by alphabetic order (#3152)
* alhabetic ordering of components

* changelog
2023-02-08 19:07:23 -08:00
Ali Abdalla
559de6eee9
Fix demos page css and add close demos button (#3151)
* close button for demo window

* fix demos page css, replace stable diffusion

* changelog

* demo notebook

* add scrollbar for demo window

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-08 18:54:48 -08:00
github-actions[bot]
ba67036df8
New Version Docs (#3147)
* [create-pull-request] automated change

* empty commit

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-02-07 13:45:55 -08:00
Ali Abdalla
0773205fdb
Better docs navigation on mobile (#3112)
* fix responsiveness of embedded lineplot

* regenerate notebook

* nav button and sidebar

* better styling

* fix broken quickstart link

* fix styling on close button

* styling

* undo assets change

* changelog

* refactor code

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-07 12:42:57 -08:00
github-actions[bot]
4a8381312f
New Version Docs (#3116)
* [create-pull-request] automated change

* trigger ci

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-02-02 10:03:39 -05:00
github-actions[bot]
201df3ae4b
New Version Docs (#3087) 2023-01-30 10:28:41 -08:00
Ali Abdalla
02c7bfe1ed
Adding missing embedded components on docs (#3027)
* add embedded component for dataset

* add embedded component for examples

* add embedded component for progress

* remove make_waveform

* add embedded component for uploadbutton

* remove footer on lineplot embedded component

* remove broken image from gallery

* add embedded component for interpretation

* generated notebooks

* changelog

* change example component demo to images

* remove natgeo img in gallery demo

* regenerate notebooks
2023-01-24 13:15:06 -08:00