2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-04-12 12:40:29 +08:00

150 Commits

Author SHA1 Message Date
Ali Abdalla
d4272b3fdb
Better navigation and search in docs ()
* expand nav bar to include subclasses and methods

* only show sub-links during the section

* add search

* add hotkeys

* override default shortcuts

* styling

* added x button

* broken style block

* refactoring and fixing errors

* esc key shortcut for exit

* svg file instead of b64

* using @apply
2022-08-04 18:23:20 -07:00
Ali Abdalla
f93f4c9cfe
Referencing guides in docstrings and other fixes ()
* 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
Ali Abdalla
361837753c
Embedding the spaces on the landing page using web components ()
* convert from iframes to web components

* add copy buttons to codeblocks
2022-08-04 17:36:12 -07:00
Ali Abdalla
2903b74160
Add link to Github on nav bar ()
* Add link to Github on nav bar

* fix icon color

* better responsiveness

* fixed responsive issues
2022-08-04 16:55:46 -07:00
Freddy Boulton
ab18e07ff0
Add Events to docs page ()
* Add Events to docs page

* Remove artifacts after rebase

* Add Load to events section as well

* Lint

* Add comments explaining underscore params in events

* Add events for all components

* Set is_class=False

* true -> True

* Specify which corner the rounded param relates to

* make the first sentence of style more descriptive

* Add sentence about only using in gradio blocks

* Add more description to container param
2022-08-03 15:09:08 -04:00
Freddy Boulton
db1ff439a7
Fix docs ()
* Fix docs

* Fix ner demo

* refactoring script templates

* remove linksnav in guides

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-07-29 16:21:05 -04:00
aliabd
35d809c788 fix merge conflicts 2022-07-28 14:28:52 -04:00
Abubakar Abid
5ee2122834
Suggestion: add more info on update() ()
* more on update'

* Move example to docstring

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2022-07-27 14:46:13 -04:00
Ali Abdalla
96a8bfcb02
Website Refactoring and Styling ()
* remove params from blocks signature

* refactor copy and anchor js

* fix anchor spacing for headers
2022-07-27 14:30:15 -04:00
Ali
e3aa311f8e changes 2022-07-26 23:32:50 -07:00
Ali
1121699cf1 changes 2022-07-26 23:14:00 -07:00
Ali Abid
0e4931fbe2 changes 2022-07-26 15:11:08 -04:00
Freddy Boulton
3f5a9ea19d
Move gr update to helpers ()
* Move update to components helpers

* Move gr.update to Component Helpers Section
2022-07-26 14:27:29 -04:00
Freddy Boulton
ef15a92ffa
Make supported events orange () 2022-07-26 11:35:08 -04:00
Freddy Boulton
1779187692
Add to docs () 2022-07-25 10:20:10 -04:00
Ali Abid
21f80d77df changes 2022-07-25 08:45:13 +01:00
Ali Abid
3a93202fd6 changes 2022-07-25 02:18:42 +01:00
Abubakar Abid
4ef87e03d0
Fixes the twitter image preview for Guides ()
* twitter-meta

* fix
2022-07-22 16:10:40 -07: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
Abubakar Abid
0bba0b9664
Adding flagging callbacks to the docs ()
* added flagging documentation

* formatting

* added example usage

* formatting

* addressed comments
2022-07-21 13:10:22 -07:00
Ali Abdalla
1ac71597fc
fix underscore bug in demo names () 2022-07-21 01:54:38 +01:00
Ali Abdalla
c2f2fd6d3c
remove params from blocks signature () 2022-07-20 19:46:33 +01:00
Ali Abdalla
e7e8b6333c
adding meta tags for all pages () 2022-07-19 18:08:21 +01:00
Abubakar Abid
31ba09aafa
Some cleanups to the docs page ()
* break execution if website isn't properly built

* small misc changes

* formatting
2022-07-19 08:53:56 -07:00
Ali Abdalla
0dbc8bfcf3
Embedding Components on Docs ()
* add component code to demos docker files

* fix demo_name

* frontend

* fix demo-name in frontend

* remove built with gradio

* remove extra space

* styling

* wait till page loads

* fixing components that require more parameters

* remove print statements

* check for correct run file

* combining component demos to one file

* typo

* fixes

* suffix name

* add is_component

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-19 16:20:20 +01:00
Ali Abdalla
04e6fce7be
copy test dir in dockers () 2022-07-19 16:13:51 +01:00
Ali Abdalla
a44f8f7780
Miscellaneous formatting improvements to website ()
* 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 ()
* 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
260fbb3564
Walk through all python files () 2022-07-13 11:31:22 -04:00
Freddy Boulton
4c26f412a8
Add data format expected for examples to Docs page ()
* Add supported events

* Add example format for missing components

* Change tag to examples-format and use bracket types

* Add more descriptions to examples format

* Don't italicize text
2022-07-11 20:25:10 -04:00
Ali Abdalla
18b92fb17c
add /guides.html () 2022-07-11 15:41:39 -07:00
Freddy Boulton
600722c218
Add examples for series and parallel ()
* Add examples for series and parallel

* Add ML demos for interface and load
2022-07-11 11:21:30 -04:00
Freddy Boulton
0ed76aa32b
Add back component info ()
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-11 10:15:54 -04:00
Freddy Boulton
54f330af48
Add examples component to docs ()
* Add examples to docs

* Adding guide for examples

* Exclude guides from methods

* PR feedback: typos, different allowed values of examples, docstrings
2022-07-08 11:32:08 -04:00
Ali Abdalla
8455950009
add favicon () 2022-07-08 17:32:01 +02:00
aliabid94
1f955f7b95
Live website [hotfix] ()
* fix audio output cache ()

* fix audio output cache

* changes

* version update

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

* Website Tracker Slackbot ()

* added commands to reload script

* catch errors with git pull

* read new webhook from os variable

* correcting bash

* bash fixes

* formatting

* more robust error checking

* only sends success if git changes

* catching error from script

* escaping error text to send with curl

* correct text escaping for error message

* fix search bug in guides ()

* Update getting_started.md ()

* Fix type of server returned by `Launchable` ()

* `Launchable` returns a FastAPI now

* Update .gitignore

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f425c0ea961461854efae9c28a73aea01

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f425c0ea961461854efae9c28a73aea01
Former-commit-id: bce6f9c4c5254301eb73e76eb47cddab3e132c24

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f425c0ea961461854efae9c28a73aea01
Former-commit-id: bce6f9c4c5254301eb73e76eb47cddab3e132c24
Former-commit-id: feba0888e3d488b82a3518343f607517d0836f13

* Add a missing line to getting started ()

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cca3f560621219530444b631b7767392

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cca3f560621219530444b631b7767392
Former-commit-id: 0d80e6a056abad1c4d1fd6f162eb725e0db5fb4f

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cca3f560621219530444b631b7767392
Former-commit-id: 0d80e6a056abad1c4d1fd6f162eb725e0db5fb4f
Former-commit-id: 20523b05194438209cf64cb688008b4599eb847e

* changes

* changes

* Homepage: header image size ()

* image size

* image in local assets

* add dall-e mini banner

* undo ui changes

* changes

* changes

* updates

* updates

* changes

* changes

* changes

* h11 dependency

* add npm build-mac

* expand demo button to all classes

* add demos to docstrings

* add anchor tags to headers

* add required tag to param table

* add consistent styling for headers

* skip param beginning with underscore from docs

* skip kwargs param from docs

* remove types in param docstring

* override signature to reflect usage

* add supported events

* add step-by-step guides

* fix guide contribution link

* add related spaces

* fix img styling on guides

* pin quickstart, advanced, and block guides to top

* margin fix

* autogenerated copy buttons for all codeblocks

* changes

* documentaiton

* format

* launch

* formatting

* style changes

* remove backticks

* changes

* changes

* hotfix

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Ali <ali.abid@huggingface.co>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-06 17:03:35 -07:00
aliabid94
70ebf698fa
Live website changes ()
* fix audio output cache ()

* fix audio output cache

* changes

* version update

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

* Website Tracker Slackbot ()

* added commands to reload script

* catch errors with git pull

* read new webhook from os variable

* correcting bash

* bash fixes

* formatting

* more robust error checking

* only sends success if git changes

* catching error from script

* escaping error text to send with curl

* correct text escaping for error message

* fix search bug in guides ()

* Update getting_started.md ()

* Fix type of server returned by `Launchable` ()

* `Launchable` returns a FastAPI now

* Update .gitignore

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f425c0ea961461854efae9c28a73aea01

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f425c0ea961461854efae9c28a73aea01
Former-commit-id: bce6f9c4c5254301eb73e76eb47cddab3e132c24

* Add a missing line to getting started ()



Former-commit-id: 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 81e271ca22e838e1ee618d48cdb0e904fd233cf3 [formerly 96f203108bf1222fe333a0175687293abdc669d7]]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f425c0ea961461854efae9c28a73aea01
Former-commit-id: bce6f9c4c5254301eb73e76eb47cddab3e132c24
Former-commit-id: feba0888e3d488b82a3518343f607517d0836f13

* Add a missing line to getting started ()

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cca3f560621219530444b631b7767392

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cca3f560621219530444b631b7767392
Former-commit-id: 0d80e6a056abad1c4d1fd6f162eb725e0db5fb4f

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cca3f560621219530444b631b7767392
Former-commit-id: 0d80e6a056abad1c4d1fd6f162eb725e0db5fb4f
Former-commit-id: 20523b05194438209cf64cb688008b4599eb847e

* changes

* changes

* Homepage: header image size ()

* image size

* image in local assets

* add dall-e mini banner

* undo ui changes

* changes

* changes

* updates

* updates

* changes

* changes

* changes

* h11 dependency

* add npm build-mac

* expand demo button to all classes

* add demos to docstrings

* add anchor tags to headers

* add required tag to param table

* add consistent styling for headers

* skip param beginning with underscore from docs

* skip kwargs param from docs

* remove types in param docstring

* override signature to reflect usage

* add supported events

* add step-by-step guides

* fix guide contribution link

* add related spaces

* fix img styling on guides

* pin quickstart, advanced, and block guides to top

* margin fix

* autogenerated copy buttons for all codeblocks

* changes

* documentaiton

* format

* launch

* formatting

* style changes

* remove backticks

* changes

* changes

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Ali <ali.abid@huggingface.co>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-06 16:22:10 -07:00
Abubakar Abid
311972dba6
added docs to events & styles ()
* added docs to events

* added docs to events

* added style docs to highlightedtext

* add events to docs

* format

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-13 17:02:08 -07:00
Ömer Faruk Özdemir
8544295df2
add-logos-to-repo ()
* add-logos-to-repo

- only encode is missing

* add-logos-to-repo

- add encode logo, add logos to the readme

* add-logos-to-repo

- change python logo, add HF logo
- positioning tweaks on README

* add-logos-to-repo

- tweaks

* add-logos-to-repo

- tweaks

* Update README.md

* add-logos-to-repo

- tweaks

* add-logos-to-repo

- remove gray deee oh :D

* add-logos-to-repo

- final readme design

* add-logos-to-repo

- undo readme changes

* render_readme fix for windows

* add-logos-to-repo

- last tweaks

* add-logos-to-repo

- last tweaks

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-09 11:05:10 +03:00
Victor Muštar
39b3299212
Homepage: header image size ()
* image size

* image in local assets
2022-05-20 14:51:08 +02:00
Ali Abdalla
8e8839a3d0
Better embedded chatbot content ()
* add processing diagram

* modify embedded chat content

* fix height/width in processing diagram
2022-05-19 19:10:48 -04:00
Ali Abdalla
43e974133d
add processing diagram () 2022-05-19 18:43:09 -04:00
Abubakar Abid
d1468b560e
fixes to component docs ()
* fixes to component docs

* remove extra comma

* docstrings'

* update to 7k

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-05-18 15:08:57 -07:00
Ali Abdalla
5b827f5b2c
Fixes to embedded demos in website docs ()
* remove webcam from video demo

* remove blocks_gpt and blocks_neural_instrument_coding demos

* only show Try Examples if examples exist

* remove if name = main from rendereed code

* rename demos that have same name as component

* remove references to old demo names from guides

* add model3d demo
2022-05-17 14:18:51 -04:00
Abubakar Abid
fafab37087
fixed guides () 2022-05-17 10:56:43 -04:00
aliabid94
e828a68c98
Website fixes ()
* changes

* changes
2022-05-17 06:26:14 -07:00
pngwn
8186699896
Update navbar.html () 2022-05-16 19:23:59 -04:00
Ali Abdalla
f8aa122074
Light mode for demos ()
* demo alignment on landing page

* new meta img

* scrolling bars to demos on landing

* mobile responsive guides

* light mode for landing page demos
2022-05-16 17:09:59 -04:00
Ali Abdalla
d0a54dba4b
Mobile responsive guides ()
* demo alignment on landing page

* new meta img

* scrolling bars to demos on landing

* mobile responsive guides
2022-05-16 16:28:48 -04:00