gradio/scripts/launch_website.sh
2022-11-18 11:24:13 -08:00

16 lines
300 B
Bash

#!/bin/bash
cd "$(dirname ${0})/.."
source scripts/helpers.sh
npm_required
echo "Building the website..."
set -e
cd website/homepage
LATEST_COMMIT=$(git log -1 --format="%H")
npm install
npm run build --url=https://gradio-main-build.s3.amazonaws.com/$LATEST_COMMIT/
cd build
python -m http.server