Commit Graph

186 Commits

Author SHA1 Message Date
Abubakar Abid
ff21ecbc25
Add ability to blocklist filepaths, ability to specify where gradio temp files are created (#4047)
* temporary file

* tests

* formatting

* rename

* added another test

* guide

* formatting

* changelog

* added custom gradio temp directory (#4053)

* added custom gradio temp directory

* Update 03_sharing-your-app.md

* rename test

* address review

* remove print
2023-05-03 17:30:38 -05:00
Abubakar Abid
531f11d642
Fastapi Python Client Guide (#3892)
* fastapi guide

* changelog

* writing

* finish guide

* fix

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

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

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

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

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

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

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

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

* dependencies

* html

---------

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-05-02 15:54:40 -05:00
aliabid94
2f8b9f8b03
UI fixes for themes (#3590)
* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 14:31:41 -04:00
Ikko Eltociear Ashimine
4c0410579b
Fix typo in 07_other-tutorials/theming-guide.md (#3952)
* Fix typo in 07_other-tutorials/theming-guide.md

* Update CHANGELOG.md

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-24 10:01:20 -04:00
Freddy Boulton
288e6f77cf
move guide to client section (#3948) 2023-04-24 09:51:46 -04:00
Freddy Boulton
ad2ed23ce0
Gradio and LLM agents guide (#3934)
* Add WIP guide

* Fix syntax

* Fix guide

* Fix guide
2023-04-21 17:05:58 -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
Abubakar Abid
7a04ebe7fd
Fix some documentation-related issues in Guides (#3903)
* client doc fixes

* simplify demo

* added guides

* chatbot guide

* notebooks

* format
2023-04-19 14:38:11 -04:00
Abubakar Abid
9f4f851d68
Python client Guide (#3788)
* guide

* guide

* Apply suggestions from code review

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

* add cancel

* remove duplicated docs

* updates

---------

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-04-12 13:44:38 -07:00
aliabid94
09aedce77c
Theme builder (#3664)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

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

* Update gradio/themes/builder.py

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

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-30 11:20:34 -07:00
Ali Abdalla
1229f3b001
Fix outdated sharing your app guide (#3699)
* fix embed this space screenshot

* fix use via api

* changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-29 19:49:40 -04: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
Freddy Boulton
108a66bbd1
Fix embedded demos (#3638)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 08:33:57 -07: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
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
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
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
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
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
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
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
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
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
Abubakar Abid
952da337a6
Document web component parameters (#3407)
* document embed params

* changelog

* iframe

* fixed review changes
2023-03-07 14:37:06 -08:00
Abubakar Abid
2fd9b55b87
Added a section on security (#3408)
* security

* added section on security

* security

* changes from review
2023-03-07 14:21:23 -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
Abubakar Abid
b80fb2729a
Supabase Guide (#3275)
* supabase guide

* changelog

* changes

* guide

* schema'

* finish

* added images

* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md

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

* changes

* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md

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

* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md

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

* changes

* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md

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

* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md

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

* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md

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

* Update guides/05_tabular-data-science-and-plots/creating-a-dashboard-from-supabase-data.md

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

* add demo

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-03-01 13:20:24 -08:00
aliabid94
9c811ed892
Add info= parameter to form type inputs to provide more context for users (#3291)
* changes

* changes

* changes

* changes

* changes

* changes
2023-02-22 15:16:15 -08:00
Abubakar Abid
56245276e7
Added diffusers demo with batching & some misc improvements to doc (#3224)
* added diffusers demo

* guide updates

* changelog

* update demo

* notebook
2023-02-17 18:53:21 -06:00
Omar Sanseviero
dd5d7630be
Add a section on how to run a Gradio app locally (#3170)
* Update 01_quickstart.md

* Update CHANGELOG.md

* Update 01_quickstart.md

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-13 13:13:15 -05:00
Ali Abdalla
190687e716
Changes to W&B guide (#3153)
* changes to guide

* changlog

* changlog fix credit to scott
2023-02-08 13:29:37 -08:00
Abubakar Abid
f062c7e1fd
Adds a demo / information about how to create demos with variable #s of outputs (#3127)
* added demo

* added to guide

* changelog

* notebooks

* update demo
2023-02-06 11:38:54 -08:00
Freddy Boulton
ec2b68f554
Update docs on equal_height param for Rows (#3125)
* Update docs

* CHANGELOG
2023-02-06 14:21:59 -05:00
Dawood Khan
63d5efcfc4
Chatbot Guide Update (#3023)
* chatbot guide

* guide update

* changelog

* demo updates

* demo fix

* notebook fix

* format

* guide fixes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-03 12:13:15 -05:00
Freddy Boulton
9b15e9a1f8
Update docs to explain how reload mode can be used with queue/auth (#3089)
* Add note to guide

* Add more explanation

* Undo changes

* CHANGELOG

* Make work with queue + fix docs

* Changelog fix

* Add unit test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-02 15:39:45 -05:00
Dhruv Nair
04484621c2
Add guide for Comet and Gradio (#3058)
* initial commit for comet guide

* Add video clips

* fix typos and links

* add edit panel gif

* rename markdown file for guide

* update video tags

* update changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-02 11:17:58 -05:00
Abubakar Abid
f3b3736596
Guide on 4 kinds of interfaces (#3003)
* guide on 4 kinds of interfaces

* interfaces

* changelog

* added demo

* added demos and edited markdown

Added standard and unified interface demos, along with updates to the markdown.

* updated notebooks

Updated notebooks with markdown changes and bug fixes

* interfaces

* moved location of guide

* ranemd

* renamed

* removed demo

* updated blocks code to interfaces

* upload requirements.txt file

* Delete run.ipynb to add another notebook file

upload and replace

* Add run.ipynb via upload option

Notebook for unified interface demo

* fixed typo

* fixes

* update demos

* notebooks

---------

Co-authored-by: yuvraj sharma <48665385+yvrjsharma@users.noreply.github.com>
2023-02-02 07:58:29 -08:00
Christopher Akiki
4d94d4b3a5
[Minor] Correct link (#3109)
* Correct link

* Update CHANGELOG.md
2023-02-01 11:21:16 -05:00
Freddy Boulton
9ccfef0542
Fix auth on spaces (#3049)
* Add route alias

* on button click

* Fix config

* Do not redirect

* Use login to check if other route necessary

* Add message about HF spaces

* CHANGELOG

* Add gif to changelog
2023-01-30 11:11:32 -05:00
pngwn
9599772fd6
fix css scoping (#3059) 2023-01-28 09:47:14 +00:00
pngwn
669ee42c8f
fix space embeds using src attribute (#3065)
* change ports in dev mode

* changelog

* correctly detect space embeds

* changelog

* formatting
2023-01-27 14:39:36 +00:00
Ali Abdalla
625ccae34c
SEO improvements to guides (#2915)
* replace underscores with dashes and redirect old urls

* tldrs, listicles, and in-site cross-linking

* add canonical tags to all pages

* changelog

* shorten into

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-18 08:44:56 -08:00