* fix audio output cache (#804) * fix audio output cache * changes * version update Co-authored-by: Ali Abid <aliabid94@gmail.com> * Website Tracker Slackbot (#797) * 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 (#809) * Update getting_started.md (#808) * Fix type of server returned by `Launchable` (#810) * `Launchable` returns a FastAPI now * Update .gitignore * Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly96f203108b
] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f * Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly81e271ca22
[formerly96f203108b
]] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f Former-commit-id:b5112c3f42
* Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly81e271ca22
[formerly81e271ca22
[formerly96f203108b
]]] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f Former-commit-id:b5112c3f42
Former-commit-id:bce6f9c4c5
* Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly81e271ca22
[formerly81e271ca22
[formerly81e271ca22
[formerly96f203108b
]]]] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f Former-commit-id:b5112c3f42
Former-commit-id:bce6f9c4c5
Former-commit-id:feba0888e3
* Add a missing line to getting started (#816) * 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:dd700c33cc
* Clean-History - Remove 51MB file with this commit Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c Former-commit-id:dd700c33cc
Former-commit-id:0d80e6a056
* Clean-History - Remove 51MB file with this commit Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c Former-commit-id:dd700c33cc
Former-commit-id:0d80e6a056
Former-commit-id:20523b0519
* changes * changes * Homepage: header image size (#1347) * 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>
1.8 KiB
The Gradio Website
The Gradio website (https://gradio.app) is built from the contents of this folder. The website is tightly coupled with the rest of the repository through several ways:
- The gradio library used to run the demos throughout the website is built from the library in the gradio folder of this repository
- The demos are loaded from the
gradio/demo
folder - The guide pages are loaded from the
gradio/guides
folder - The documentation is loaded from the docstrings in the library itself.
The website is launched through the docker-compose.yml
file in this directory.
You can run the entire website by:
- Installing nginx
- Copying gradio.nginx.conf from this folder to /etc/nginx/conf.d/gradio.nginx.conf
- Running
docker-compose build && docker-compose up
- (Re)starting nginx
This will serve the website on port 80 (you can change the port from the gradio.nginx.conf file)
Alternatively, for development, read the homepage
section below:
The homepage
docker
The homepage folder builds the static content of the website into standalone files, served by nginx in docker. For development purposes, instead of running docker to test changes, follow these steps in the gradio/website/homepage
folder.
npm install
npm run build
(ornpm run build-mac
on Mac OSX)
The website will be built in the gradio/website/homepage/build
directory. You can run a development server from this directory to launch the homepage, e.g. python -m http.server
. See gradio/website/homepage/package.json
for build steps.
The demos
docker
The demos folder launches all the demos embedded inside the website. The demos are loaded from the gradio/demo
folder.
Auto-Reloading
The website is built from the main branch and automatically reloads on commits to main.