gradio/website/homepage
2022-01-03 17:46:07 +00:00
..
src theme updates! 2022-01-03 17:46:07 +00:00
.dockerignore Website: WIP (#328) 2021-12-13 22:02:19 -08:00
.gitignore Website: WIP (#328) 2021-12-13 22:02:19 -08:00
Dockerfile fix static path 2021-12-27 11:20:21 -08:00
nginx.conf Website: WIP (#328) 2021-12-13 22:02:19 -08:00
package-lock.json acq announcement 2021-12-16 17:15:23 +00:00
package.json Website: WIP (#328) 2021-12-13 22:02:19 -08:00
postcss.config.js acq announcement 2021-12-16 17:15:23 +00:00
README.md Website: WIP (#328) 2021-12-13 22:02:19 -08:00
render_html.py fix gradio web embeds 2021-12-22 08:45:23 +00:00
replace_style_names.py Website: WIP (#328) 2021-12-13 22:02:19 -08:00
requirements.txt Website: WIP (#328) 2021-12-13 22:02:19 -08:00
tailwind.config.js Website: WIP (#328) 2021-12-13 22:02:19 -08:00

Building Gradio Website

Run the following commands in order:

  • pip install -r requirements.txt
  • npm install
  • npm run build

The website will be built in the dist/ folder as a static website. To launch, run: cd dist && python3 -m http.server

Modifying the Website

The HTML and CSS template of the website should be modified in the src/ directory. To build changes, run npm run build. To automatically rebuild when you change a file in src/, run npm run watch.