Commit Graph

209 Commits

Author SHA1 Message Date
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
pngwn
d6fbc32ed1
Theme base 2 (#2840)
* add theme + theme atoms

* audio

* buttons

* chatbot

* forms

* start file

* complete file

* fixup workbench

* gallery

* highlighted text

* label

* json

* upload

* 3d model

* atoms

* chart

* md + html

* image

* plot + build

* table

* tabs

* tooltip

* upload

* tweaks

* tweaks + more tooling

* tweaks to padding/ lineheight

* app components _ start api docs

* format, more api docs

* finish api docs

* interpretation

* todos

* tweaks + cleanup

* tweaks + cleanup

* revert range tweaks

* fix notebooks

* fix test

* remove tw

* cleanup + login

* fix gitignore

* fix types

* run css script

* fix progress + tweaks

* update demos

* add css build to static check workflow

* tweak ci

* fix tests

* tweak markdown

* tweak chatbot + file

* fix tabs

* tweak tabs

* cleanup

* fix api docs

* fix example gallery

* add gradient to toast

* fix min height for interfaces

* revert tab changes

* update notebooks

* fix generating status animation

* fix weird table scrollbar that only appears on freddy's computer

* format

* fix dataset in gallery mode

* cleanup

* fix notebooks

* tweaks

* fix notebooks

* change

Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-01-17 12:47:40 -08:00
Ali Abdalla
1ae01b2005
Optimize images and gifs (#2922)
* convert gifs to html video

* optimize images

* changelog
2023-01-05 16:49:53 +02:00
aliabid94
58b1a074ba
Add Progress Bar component (#2750)
* changes

* version

* changes

* fixes

* changes

* changes

* changes

* changes

* chagnes

* chagnes

* fix

* changes

* changes

* changes

* change

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* version update

* Commit from GitHub Actions (Upload Python Package)

* changes

* changes

* changes

* fix

* changes

* changes

* changes

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* changes

* changes

* changes

* changes

* change

* changes

* Update guides/01_getting_started/02_key_features.md

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

* Update gradio/helpers.py

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

* Update gradio/routes.py

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

* Update gradio/helpers.py

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

* Update guides/01_getting_started/02_key_features.md

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

* Update guides/01_getting_started/02_key_features.md

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

* Update demo/progress_simple/run.py

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

* Update demo/progress_simple/run.py

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

* Update demo/progress_simple/run.py

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

* Update website/homepage/src/docs/template.html

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

* Update website/homepage/src/docs/template.html

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

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* change

* changes

* changes

* changes

* change

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: GH ACTIONS <aliabid94@users.noreply.github.com>
2022-12-30 11:45:54 -08:00
Abubakar Abid
066adf1a9d
Google Sheets + LinePlot Guide (#2816)
* draft

* guide

* add guide

* changelog

* changelog

* addressed comments
2022-12-23 10:40:52 -06:00
Ali Abdalla
3cb2bb061c
Fix formatting issues in Big Query guide and Changelog (#2842)
* fix formatting issues

* fix format issues with guide and changelog
2022-12-17 15:51:35 -06:00
Abubakar Abid
62fdaf7c38
BigQuery Guide (#2794)
* bigquery draft

* updated guide

* updates

* changelog

* changelog

* title change

* renamed and added seo tips

* renamed

* added gif
2022-12-16 16:15:55 -06:00
Abubakar Abid
074bf909ee
Better documentation of queuing parameters (#2825)
* better documentation of queuing parameters

* changelog

* added to guide

* deprecated param

* python 3.7 compat
2022-12-15 10:41:09 -06:00
Freddy Boulton
9c8fa8bf45
Create docs for 3.13.0 + fix requirements.txt (#2811)
* Create docs + fix bug

* Changelog
2022-12-14 09:33:52 -05:00
Freddy Boulton
3672e17256
Terminate generating events early if the session is closed (#2783)
* Return early if no awake events

* Add to changelog

* Add test

* Clarify when events are cancelled in the docs
2022-12-12 09:15:50 -05:00
Ali Abdalla
9af348cddd
Redirect old links and fix broken ones (#2774)
* redirect old links

* clean up nginx

* fix broken link in changelog

* fix broken links in guide

* fix broken links in other guide

* fix broken links in other guide

* move redirects from jinja to nginx

* changelog

* Update guides/06_other_tutorials/create_your_own_friends_with_a_gan.md

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

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-09 12:23:47 -08:00
Andri Danusasmita
96642a4526
docs(guides): fix typos (#2722)
* docs(guides): fix typos

* docs: changelog entry

* add to contributors shoutout

Co-authored-by: Andri Danusasmita <andri.danusasmita@nri.co.id>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2022-11-25 10:35:00 -08:00
Julien Chaumond
a9cee74247
[doc,guide] mention also diffusers not just transformers (#2719)
* [doc,guide] mention also diffusers not just transformers

* Update guides/04_integrating_other_frameworks/01_using_hugging_face_integrations.md

Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>

* Update guides/04_integrating_other_frameworks/01_using_hugging_face_integrations.md

Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>

Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
2022-11-25 10:17:16 -08:00
Julien Chaumond
c99a323ccf
Embeds: support <gradio-app host="julien-c-coqui.hf.space"></gradio-app> (#2692)
* to support `<gradio-app host="julien-c-coqui.hf.space"></gradio-app>`

* Fix iframe srcs

* prettier

* missed ones with `gradioiframe`

* embeds

* changelog

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-22 14:12:14 -06:00
Julien Chaumond
7719fae341
Update "How to Embed" doc (#2698)
* update Embedding doc

* changelog

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-22 13:23:41 -06:00
Abubakar Abid
5e148c3752
Adding ability to access in Fastapi request object into your function (#2641)
* fastapi requests

* formatting

* implement

* fix

* formatting

* formatting

* changelog

* added demo

* remove print

* added to guide

* changes for queuing

* changes to gr.Request

* formatting

* formatting

* fixes

* lint

* fixed tests

* fix batching

* fixing tests

* cleanup

* lint

* added tests; fixed review

* improve docs
2022-11-19 00:52:06 -08:00
Freddy Boulton
8d59c1480e
More demo fixes (#2656)
* Minor tweaks

* Fix gr outputs

* Fix changelog
2022-11-16 15:42:24 -05:00
Freddy Boulton
27d60792ea
Use underscore instead of parentheses (#2625) 2022-11-09 13:29:38 +01:00
Abubakar Abid
643ec37e71
Tweaks to performance guide (#2617)
* guide improvemnet

* renmaed
2022-11-08 13:53:50 +01:00
Abubakar Abid
05dcd87053
A Guide on Configuring a Gradio Queue for High-Volume Traffic (#2558)
* renamed guides and created new guide

* changelog

* more

* more text

* conc

* conc

* max performance

* guide

* finish guide

* guide

* tweaks

* tweaks

* guide

* guide
2022-11-05 18:36:46 -07:00
Freddy Boulton
f795a4d3b1
Use read_sql in database guide (#2604)
* Move demo to gradio + fix code

* Foo

* Address comments
2022-11-04 16:31:08 -04:00
Freddy Boulton
26abbe6269
Small restructure of guide layout on website (#2597)
* Move around some guides

* remove whitespace

* trigger ci
2022-11-03 15:28:09 -04:00
Freddy Boulton
4a51cec5b4
Call fn by api_name when using Blocks.load (#2593)
* Updated implementation + test

* Add changelog

* Fix unit test
2022-11-02 13:38:56 -04:00
Dawood Khan
3f9cf301ed
Fixing links in plotly map guide + demo (#2578)
* move demo to gradio org

* Update CHANGELOG.md

* Update CHANGELOG.md
2022-11-01 18:18:08 -04:00
Freddy Boulton
a23eb53e3b
Run events every given number of seconds (#2512)
* WIP

* Fix implementation

* Fix units

* Rename

* Delete dead code

* This works

* Fix tests

* Final fix - still rough

* Reduce code duplication

* Fixing bugs + test

* Changelog

* Add gif to changelog

* Update demo and remove unused imports

* undo accidental diff

* Linting

* Add to guides

* Address comments

* formatting changelog

* Fix warnings
2022-10-28 17:53:06 -04:00
aliabid94
10552cb6fd
Allow user to send inputs as dictionary (#2550)
* change

* changes

* changes

* changes

* changes

* change

* changes

* changes

* changes

* changes

* changes

* format

* changes
2022-10-28 10:52:28 -07:00
Abubakar Abid
0e168c4dff
Batching (#2218)
* batch

* formatting

* added parameter

* batch

* added docstrings

* correct arguments

* docstring

* adapt process_api for batch

* backend

* __call__

* more regular tests

* formatting

* cleaning up blocks.py

* __call__ works

* api route works

* first attempt at queue

* fixing tests

* fix some tests

* formatting

* removed print

* merge

* queue works!

* removed batch timeout

* removed batch timeout

* updated documentation

* fixing tests

* fixing tests

* fixing queue tests

* fixing queue tests

* formatting

* fix blocks config

* fix tests

* update documentation

* updated tests

* blocks

* blocks

* blocks

* tests

* test fixes

* more tests

* faster

* foramtting

* test fixes

* dataclasses

* fix

* revert to fix test

* fix

* fix test

* formatting

* fix tests

* refactoring examples

* formatting

* changelog

* fix examples

* formatting

* fix tests

* formatting

* catch error

* formatting

* fix tests

* fix cancel with batch

* final tests and docs

* test routes

* formatting
2022-10-24 16:32:37 -07:00
Dawood Khan
3a2de9b415
Map demo + Guide (#2402)
* map demo + guide

* fixes

* update dataset to load from hub

* remove csv file

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-11 23:51:48 -04:00
Freddy Boulton
7305a19a30
Fix embedded demos in some guides (#2403)
* Dont load gradio web component in guides

* Changelog
2022-10-07 10:08:14 -04:00
Julien Chaumond
91af580b85
[doc] typos (#2373) 2022-09-29 17:21:29 -04:00
Freddy Boulton
3f58434b0f
Fix typo in guide image path (#2357) 2022-09-28 11:24:13 -04:00
Freddy Boulton
b2275dc440
Add guide (#2350) 2022-09-28 11:03:07 -04:00
Freddy Boulton
6f0b4a417e
Create a guide on how to connect an app to a database hosted on the cloud (#2341)
* Add guide for postgres

* Rename

* Incorporate feedback
2022-09-27 12:18:35 -04:00
Freddy Boulton
9f7dd05b72
Start queue when gradio is a sub application (#2319)
* First stab at it

* Use util methos

* lint

* Test

* Fix formatting

* Try out setting predict endpoint from websocket request

* lint

* Fix bug

* Address comments - remove server and port

* Skip in 3.7

* Fix documentation

* Add default 🤦

* docs tweak

* Add back imports that were deleted by wrong linter version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-23 16:01:44 -04:00
voidxd
f44ed67ea0
Update 2)key_features.md (#2326)
Minor grammar/typo fixes.
2022-09-23 08:26:54 -05:00
Erfan
bff2bb35a2
changed the documentation for background styling (#2275)
* changed the body to .gradio-container #2270

* changed body to .gradio-container #2270

* added a description #2270

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-09-15 11:52:49 -07:00
aliabid94
79805b3188
Min width clarifications [hotfix] (#2276)
* Add clarifications about min width

* rewording

* changes

Co-authored-by: Ankur Goyal <ankur@impira.com>
2022-09-15 11:23:48 -07:00
Abubakar Abid
1beb54a8c0
Add documentation about how to create and use the Gradio FastAPI app (#2263)
* added a demo

* added in docs
2022-09-14 14:23:12 -07:00
Merve Noyan
361e461b97
Gradio for Tabular Data Science Workflows Guide (#2199)
* initial commit

* dataframe guide

* added link to skops

* embedded spaces + applied nits
2022-09-14 06:40:18 -04:00
Abubakar Abid
27d1718608
3.3 (#2212) 2022-09-08 07:51:55 -07:00
Abubakar Abid
bf1510165d
Support for iterative outputs (#2189)
* Support for iterative outputs (#2162) (#2188)

* added generator demo

* fixed demo structure

* fixes

* fix failing tests due to refactor

* test components

* adding generators

* fixes

* iterative

* formatting

* add all

* added demo

* demo

* formatting

* fixed frontend

* 3.2.1b release

* removed test queue

* iterative

* formatting

* formatting

* Support for iterative outputs (#2149)

* added generator demo

* fixed demo structure

* fixes

* fix failing tests due to refactor

* test components

* adding generators

* fixes

* iterative

* formatting

* add all

* added demo

* demo

* formatting

* fixed frontend

* 3.2.1b release

* iterative

* formatting

* formatting

* reverted queue everywhere

* added queue to demos

* added fake diffusion with gif

* add to demos

* more complex counter

* fixes

* image gif

* fixes

* version

* merged

* added support for state

* formatting

* generating animation

* fix

* tests, iterator

* tests

* formatting

* tests for queuing

* version

* generating orange border animation

* testings

* added to documentation

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-09-08 07:35:31 -07:00
aliabid94
f8523868d0
Add accordion component (#2208)
* changes

* changes
2022-09-07 20:32:10 -07:00
Abubakar Abid
df25d633fe
Some enhancements to gr.Examples (#2131)
* added elem_id

* formatting

* click
2022-08-30 18:06:36 -07:00
aliabid94
99833d506e
Refactoring Layout: Adding column widths, forms, and more. (#2097)
* changes

* changes

* fix

* change

* change

* changes

* changes

* changes

* changes

* change

* remove test config outputs

* fix wflow

* attempt root user

* attempt root user

* attempt root user

* attempt root user

* changes

* changes

* changes

* changes

* changes

* change

* changes

* change

* Update gradio/layouts.py

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

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-29 19:51:01 -07:00
Abubakar Abid
4d58ae79b3
Improvements to State (#2100)
* state

* state fix

* variable -> state

* fix

* added state tests

* formatting

* fix test

* formatting

* fix test

* added tests for bakcward compatibility

* formatting

* config fix

* additional doc

* doc fix

* formatting
2022-08-29 09:53:05 -07:00
Abubakar Abid
4f0b8f9829
Accept deprecated file route as well (#2099)
* fix

* added docs

* fixes
2022-08-28 14:40:12 -07:00
AK391
e63ffb326e
Wandb guide (#1898)
* add wandb guide

* fix code blocks

* update embedding section

* fix code blocks

* update iframe to web components

* add image

* add step 6 and 7 and conclusion

* add embedding code

* fix code block

* use course link

* add blocks usage example

* fix markdown

* moved

* wandb to w&b

change name

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

* Dropdown to dropdown

upper to lowercase

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

* add python to code block

* fix code block

* fix code block indent

* one more fix

* fix formatting issues

* fix number order issue

* fix indentation

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

* remove code from section 3

* remove comment

* use gr integrate and remove extra code blocks

* add back launch

* remove colab panels

* remove the wandb

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

* formatting changes

* fix section 6

* add python to fenced code block

* formatting changes

* fix code block spacing

* code changes

* fix for interface

* tweaks

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-23 15:36:51 -07:00
aliabid94
1510cb73cc
Queue error fix & custom errors (#2047)
* changes

* format

* changes

* changes

* custom error

* change

* change

* change

* changes

* change

* fe fix

* changes

* changes
2022-08-22 11:05:55 -07:00
aliabid94
b1dfc9a172
Release new queue beta (#1969)
* queue-refactor-backend (#1489)

* queue-refactor-backend

- create a template for the new design

* queue-refactor-backend

- clean after the old queue

* queue-refactor-backend

- add basic test to websocket endpoint

* queue-refactor-backend

- small fix

* queue-refactor-backend

- debugs&fixes&finalizations
- test the flow with postman

* queue-refactor-backend

- tweaks on websocket closing

* queue-refactor-backend

- cleanup

* queue-refactor-backend

- cleanup & tweaks

* queue-refactor-backend

- cleanup & tweaks

* queue-refactor-backend

- cleanup & tweaks
- correct the exception handling

* queue-refactor-backend

- add websockets dependency

* queue-refactor-backend
- reformat

* queue-refactor-backend
- add single event test

* queue-refactor-backend
- tweaks
- remove outdated tests

* queue-refactor-backend
- reformat

* queue-refactor-backend
- reformat

* queue-refactor-backend
- reformat

* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue

* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue

* queue-refactor-backend
- tweaks

* queue-refactor-backend
- make SLEEP_WHEN_FREE shorter

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

* Add estimation parameters to queue (#1889)

* - tweaks on Estimation

* version

* Revert "version"

This reverts commit bd1f4d7bfe.

* some fix and tweaks

* implement queue frontend (#1950)

* implement queue frontend

* fix types

* fix ws endpoint in build mode

* cleanup

* Queue tweaks (#1909)

* tweaks on estimation payload

* Queue keep ws connections open (#1910)

* 1. keep ws connections open after the event process is completed
2. do not send estimations periodically if live queue updates is open

* fix calculation

* 1. tweaks on event_queue

* fix issue - create new ws for each request

* format

* fix

* fix tests

* fix tests

* tets

* test

* changes

* changes

* changes

* change'

* wtf

* changes

* changes

* file perms

* Release queue beta v1 (#1971)

* - release the new queue

* - bypass the issue in the tests
- rewrite the lost part in the codebase

* - add concurrent queue example (#1978)

* rank_eta calc

* Queue fixes (#1981)

* change

* format

* - comment out queue tests as they dont work well

* - reformat

* Update gradio/event_queue.py

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>

* changes

* changes

* change

* weird fix

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>

* release-queue-v3 (#1988)

* Fix frontend queuing to target secure WSS (#1996)

* change

* format

* changes

* queue-concurrency-tweaks (#2002)

1. make gather_data and broadcast_estimation sequential instead of concurrent because they were deleting elements at the same time and raising expections which was lowering the performance

* Update Queue API, documentation (#2026)

* changes

* changes

* fixes

* changes

* change

* fix

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-08-17 11:17:56 -07:00
Ali Abdalla
f93f4c9cfe
Referencing guides in docstrings and other fixes (#1905)
* tie guides to docs in docstrings

* reference guides in more sections

* fix missing guides in interface and blocks

* fix broken html div

* remove pinned metadata for ordering

* fix annoying comma space in guide tags

* retrigger codecov check

* fix guides bug in flagging

* add controlling layout guide to row, column, and tab
2022-08-04 17:55:09 -07:00
Artin Mohammadi
3aacc4b3a9
A new face for the Sultan of ML deployment (#1943)
* File to display citation in the repo

* The README template updated

* Quickstart guide updated

* Smart code for smart rendering

* The new face of the king

* Typo fix and making executable

* `PIP` to lower case and knowing sentences

* Updating the CircleCI and Codecov badges

* Fix missing commas

* Replacing single quotes with double quotes
2022-08-04 10:48:17 -07:00
Abubakar Abid
a52af7c483
How data flows through an app (#1897)
* added info on preprocessing/postprocessing

* preprocessing/postprocessing
2022-07-28 16:57:27 -04:00
aliabd
35d809c788 fix merge conflicts 2022-07-28 14:28:52 -04:00
Ali Abdalla
5a350a1ded
fix image size in getting started (#1901) 2022-07-28 13:44:11 +01:00
Ali
20696acdf1 changes 2022-07-26 23:39:48 -07:00
Ali
1121699cf1 changes 2022-07-26 23:14:00 -07:00
Dawood Khan
a12ac35b2a
Add New Model3D Guide (#1894)
* add model3d guide

* fixes

* fixes

* more fixed

* fix
2022-07-26 23:26:23 +01:00
Ali Abid
0e4931fbe2 changes 2022-07-26 15:11:08 -04:00
Abubakar Abid
0019c12844
added multistep to docs (#1880) 2022-07-25 17:00:13 -07:00
Martina Fumanelli
ba65a95e07
Add new component guide (#1861)
* Add first steps to new component guide

* Add last steps to new component guide

* Fix review minors on new component guide

* Fix first steps to new component guide

* Fix last steps to new component guide

* Fix color_picker demo examples

* Add code snippets to new component guide

* Apply suggestions from code review to new component guide

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

* Add explanation for different types of component files in new component guide

Co-authored-by: Luigi Cerone <luigicerone96@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-07-25 16:25:50 -04:00
Abubakar Abid
c9b8ad80fd
NER Improvements and Guide (#1869)
* ner accept hf format

* formatting

* added ner guide

* guide fixes

* added unittests for highlighttext

* formatting
2022-07-25 12:16:00 -07:00
Freddy Boulton
1779187692
Add to docs (#1866) 2022-07-25 10:20:10 -04:00
Ali Abid
cb2240158a changes 2022-07-25 08:48:45 +01:00
Ali Abid
21f80d77df changes 2022-07-25 08:45:13 +01:00
Ali Abid
9b94701f7e changes 2022-07-25 04:56:10 +01:00
Ali Abid
7a486d77f6 changes 2022-07-25 04:46:11 +01:00
Ali Abid
3a93202fd6 changes 2022-07-25 02:18:42 +01:00
Abubakar Abid
c638aa9961
Improve flagging guide & add flagging with Blocks (#1853)
* improving guide

* flagging guide

* remove img

* fixed spaces

* fixes
2022-07-22 12:14:34 -07:00
Freddy Boulton
9360670e23
Add guide on how to add interpretation to a Blocks App (#1851)
* Add demo code

* Guide rough draft

* Update demo

* Add image classification demo
2022-07-22 12:00:24 -04:00
Ali Abid
595357e37b changes 2022-07-22 12:56:02 +01:00
Ali Abid
0920710779 change 2022-07-22 12:49:21 +01:00
Freddy Boulton
c579aa195d
Clarify API of custom interpretation function + fix demo (#1842)
* Modify demo + guide on custom interpretation

* Fix typo

* Change interfaces to inputs
2022-07-21 09:42:49 -04:00
Freddy Boulton
3f9ec2c345
Add a guide on how to use apps like functions (#1799)
* Add examples for series and parallel

* Create demo + guide

* More formatting

* Change name of guide

* Fix typo

* Use english to german as example instead

* Expand phrase a bit
2022-07-19 17:43:53 -04:00
Freddy Boulton
4a1879edaf
Remove usage of deprecated gr.inputs and gr.outputs from website (#1796)
* remove deprecated api from docs

* Remove usage of 'state' shortcut

* Back out state changes

* Back out state changes in creating_a_chatbot

* Link chatbot guide to Variable docs
2022-07-19 11:53:01 -04:00
Freddy Boulton
8aba1c991b
Add info to docs on how to set default values for components (#1788)
* Explicitly set value and add to docs

* Fix wording a bit

* Remove sentence that's not adding much

* Remove extra word

* Delete screenshot
2022-07-19 11:16:56 -04:00
Ali Abdalla
a44f8f7780
Miscellaneous formatting improvements to website (#1754)
* remove required tag from kwargs

* placeholder for missing docstrings

* fix alignment issues in reload guide

* added documentation

* added doc to column

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-18 21:33:21 -07:00
Freddy Boulton
de4458361b
Add gr.update to blocks guide (#1649)
* Add gr.update to guide

* Add to docs page and add step-by-step guide

* Fix documentation tests

* PR reviews

* Use code snippet

* Make section title plural

* Blocks utils in their own section
2022-07-14 11:43:38 -04:00
Freddy Boulton
a180d41692
Improve formatting of guide (#1789) 2022-07-14 10:27:18 -04:00