Commit Graph

4954 Commits

Author SHA1 Message Date
pngwn
6c2b3d1bca
fix ci (#3576) 2023-03-22 14:00:50 +00:00
pngwn
320b46d8d8
fix ci (#3575) 2023-03-22 13:54:03 +00:00
pngwn
e553558a47
3404 publish js client (#3574)
* publish ci setup

* publish ci setup
2023-03-22 13:46:23 +00:00
Freddy Boulton
7140903dd6
Fix darkmode text color for altair plots (#3555)
* dont apply formatting for non-native plots

* CHANGELOG

* Remove unused diff
2023-03-21 19:32:33 -04:00
Ali Abdalla
053504a691
Remove extra $demo from theme guide (#3563)
* remove extra

* changelog
2023-03-21 12:53:47 -07:00
Ali Abdalla
ab95f0551e
Mobile responsive iframes in themes guide (#3562)
* make demos mobile responsive

* changelog
2023-03-21 11:52:34 -07:00
Abubakar Abid
6c8aeed58f
Theme guide fixes (#3561)
* fixes

* changelog

* changelog

* changelog

* fix
2023-03-21 10:44:25 -07:00
Abubakar Abid
88afd684be
Makes some fixes related to TempFiles (#3523)
* temp file fixes

* changes

* fixing tests

* formatting

* fix

* fix chatbot processing

* tests

* get tests to pass

* fix code demo

* changelog

* fix multimodal
2023-03-21 09:37:24 -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
Abubakar Abid
dbd4f755fe
Fixes theme guide & releases gradio==3.23.0 (#3554)
* some updates to the guide theme

* version release

* changelog

* changelog

* update guides to use interface

* changes

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-20 23:20:09 -07:00
aliabid94
ea54486350
Dropdown issues (#3549)
* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-20 22:57:49 -07:00
Abubakar Abid
c1b5d42cd2
Removes leading spaces from all lines of code uniformly in the gr.Code() component (#3556)
* code changes

* changelog
2023-03-20 22:07:46 -07:00
aliabid94
ce20f1ba20
fix login (#3529)
* fixes

* changes

* changes
2023-03-20 21:59:19 -07:00
Freddy Boulton
9d159be249
Add missing demos for Code and Barplot (#3550)
* Add missing demos

* Add code

* Linting

* Format notebook

* Remove extra print

* Update demo/barplot_component/run.py

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

* Fix code component formatting

* Fix barplot

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-20 19:16:18 -04:00
Freddy Boulton
6fbd25399e
Add theme sharing tutorial to guide (#3543)
* Add theme sharing guide

* Misc updates

* Use bullet points

* Fix typo in 3.7 requirements

* List all built-in themes in guide
2023-03-20 16:57:53 -04:00
Freddy Boulton
ce1837f68c
Separate dependencies for python 3.7 and 3.9 (#3548)
* Separate dependencies

* Lint

* Install in dep + revert

* Typo
2023-03-20 16:02:17 -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
Abubakar Abid
6c2279d52f
version 3.22.1 (#3508) 2023-03-18 17:41:12 -07:00
aliabid94
a56b7de3c6
Theme label bar fix (#3507)
* changes

* changes

* changes

* changes

* changes

* Update gradio/themes/base.py

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

* Update gradio/themes/base.py

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* changes

* changes

* changes

* changes

* changes

* undo merge break

* changes

* changes

* changes

* fix

* theme_to_soft

* changes

* restore_label_stat_bats

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 17:30:52 -07:00
Abubakar Abid
d0ec3d97f2
Iframes guides and fixes theme_new_step_3\run.py (#3506)
* seafoam

* theme

* save

* Update guides/06_other-tutorials/theming-guide.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_other-tutorials/theming-guide.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_other-tutorials/theming-guide.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_other-tutorials/theming-guide.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_other-tutorials/theming-guide.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_other-tutorials/theming-guide.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_other-tutorials/theming-guide.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

---------

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-03-18 15:19:43 -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
Abubakar Abid
5249bdd753
Release v3.22.0 (#3489)
* release 3.22.0

* Add type hint

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-18 13:24:11 -07:00
aliabid94
8114202697
Use soft theme instead of glass theme in demo (#3503)
* changes

* changes

* changes

* changes

* changes

* Update gradio/themes/base.py

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

* Update gradio/themes/base.py

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* changes

* changes

* changes

* changes

* changes

* undo merge break

* changes

* changes

* changes

* fix

* theme_to_soft

* changes

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 13:07:23 -07:00
space-nuko
52253b8bb1
Remove IOComponent.add_interactive_to_config (#3476)
* Remove `IOComponent.add_interactive_to_config`

* Move interactive mode conversion into postprocess

* Requested changes

* Update tests

* Fix test

* Fix test

* Fix test

* Fix test

* updating test file

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 08:13:19 -07:00
Abubakar Abid
df7dffca88
Rename theme guide (#3500)
* rename guie

* rename guide

* update link in changelog
2023-03-17 18:05:04 -07:00
aliabid94
5089fff3a6
More theme updates (#3497)
* changes

* changes

* changes

* changes

* changes

* Update gradio/themes/base.py

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

* Update gradio/themes/base.py

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* changes

* changes

* changes

* changes

* changes

* undo merge break

* changes

* changes

* changes

* fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-17 17:20:55 -07:00
Abubakar Abid
de3254fd08
Theme+release (#3494)
* changes

* changes

* changes

* changes

* changes

* Update gradio/themes/base.py

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

* Update gradio/themes/base.py

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* changes

* changes

* changes

* save file

* update changelog

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-17 07:41:53 -07:00
Freddy Boulton
79a369cc68
Fix loading css and api when mounted in subpath (#3482)
* Implementation

* Lint + CHANGELOG

* Remove log + / typo

* Fix embedding

* Minor fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-16 17:33:40 -04:00
space-nuko
6ffa7f105e
Remove generate_sample() method (#3483)
* Remove `generate_sample()` method

* Add changelog entry

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-16 14:22:25 -07:00
Freddy Boulton
19eaafb2ad
Fix code block (#3480) 2023-03-16 15:14:27 -04:00
Abubakar Abid
eb101c428f
Adds copy button to textbox via .style() (#3452)
* add copy to textbox

* changelog

* formatting, docstring

* changes

* formatting

* demo

* cleanup

* copy button
2023-03-15 16:45:45 -07:00
aliabid94
373c8dd716
Add elem classes (#3466)
* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-15 14:01:53 -07:00
Abubakar Abid
3d0ab76532
Pin pyright (#3475)
* changelog

* changelog

* changelog
2023-03-15 09:53:48 -07:00
Abubakar Abid
318e90c0ed
Fix File.upload() event (#3462)
* fix .upload event

* changelog

* cleanup
2023-03-15 07:22:34 -07:00
aliabid94
814e928f05
Fix primary bg button color (#3468)
* changes

* changes
2023-03-14 21:12:00 -07:00
Ali Abdalla
302982c71e
Document gr.Error (#3465)
* add docstrings and document error

* fix link in guide

* changelog

* lint
2023-03-14 20:00:26 -07:00
Radamés Ajna
226e87cd54
implement missing methods handle nested dict (#3459)
* implement missing methods handle nested dict

test for get 'user-agent'
extra example for gr.Requests

* missing notebook example

* add missing attributes, keys, values, items

* update changelog

* fix changelog
2023-03-14 15:15:12 -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
Abubakar Abid
82b481a7c7
V3.21.0 (#3455)
* version 3.21

* version
2023-03-13 18:08:49 -07:00
aliabid94
3d772b6aea
Fix Mic display (#3456)
* changes

* fix
2023-03-13 18:02:53 -07:00
aliabid94
95bf08b2e2
Adding the .select event listener (#3399)
* changes

* changes

* changes

* changes

* changes

* changes

* changs

* changes

* changes

* changes

* changes

* changes

* changes

* preview

* fix notebook

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Add type hints (#3403)

Co-authored-by: aliabid94 <aabid94@gmail.com>

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* change

* changes

* changes

* changes

* changes

* changes

* changes

* Update gradio/helpers.py

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

* doc update

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-13 17:12:41 -07:00
Abubakar Abid
175dd160ec
Adds accepts parameter to Code component to control filepath/string (#3450)
* test

* wording

* remove show label

* show label

* adding example

* add examples

* make change

* Code
2023-03-13 13:59:23 -07:00
Abubakar Abid
c4734fff8b
Makes a few fixes to the JSON component (#3451)
* small fixes

* changelog, formatting

* static checks
2023-03-13 10:29:26 -07:00
Dawood Khan
f8159aa5f4
Making the chatbot even more multimodal (#3413)
* multimodal chatbot

* notebook

* fix tests

* Update demo/chatbot_multimodal/run.py

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

* fix notebook

* changelog

* Update CHANGELOG.md

* Update gradio/components.py

* Update gradio/components.py

* Update gradio/components.py

* fixing security issue

* updating demo

* formatting

* demo notebooks

* changes

* typing

* changes

* changes

* changes

* add test

* fixes

* renaming demos

* fixed demo

* fixes

* fix demos

* chatbot

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-13 07:21:03 -07:00
aliabid94
092b7448e6
consecutive triggers with .then (#3430)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update guides/03_building-with-blocks/01_blocks-and-event-listeners.md

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

* Update gradio/blocks.py

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

* Update demo/chatbot_simple_demo/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>

* allow nest

* changes

* changes

* changes

* changes

* changes

* events

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-11 20:38:22 -08:00
pngwn
11bb732f5d
add code component (#3421)
* add code component

* changes

* changes

* code

* add code to all_demos

* change remove prefix

* changes

* notebooks

* fix pythong types

* changelog

* cleanup

* Apply suggestions from code review

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

* add interactive kwarg

* fix focus

* changelog

* fix demo

* tests

* cleanup

* Update gradio/components.py

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

* change padding to compute from block label styles

* use neutral colours for sucess animation

* cleanup

* update document

* add changelog for fix

* fix documentation

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-10 17:52:17 +00:00
Freddy Boulton
97488412ec
Fix event handler documentation (#3434)
* Document callable method

* Add comment

* CHANGELOG
2023-03-10 12:36:08 -05:00
aliabid94
c22f84343b
Event listener cleanup (#3420)
* changes

* changes

* trim out then

* chagnes

* CHANGES

* changes

* changes

* changes

* restore ui

* changes

* changes

* changes

* changes

* changes

* changes

* Update gradio/documentation.py

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

* changres

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-09 12:58:41 -08:00
Ali Abdalla
19f9f06d54
Document Blocks methods (#3427)
* document launch, queue and integrate in blocks

* seperate example usages for interface vs blocks methods

* changelog

* fix lint

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-09 12:10:17 -08:00