mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
2734bd782e
* format fix * fix image tests Co-authored-by: Ali Abid <aliabid94@gmail.com> |
||
---|---|---|
.. | ||
src | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
nginx.conf | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
README.md | ||
render_html_helpers.py | ||
render_html.py | ||
replace_style_names.py | ||
requirements.txt | ||
tailwind.config.js |
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
.