Commit Graph

140 Commits

Author SHA1 Message Date
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