mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
9bf16c2211
* api view with basic html * added base docs for raw inputs/outputs * reading correct url from frontend * styling * fill in the blank request snippet * post a request from docs * post button and random generator * styling * added view the api to interface * style changes * corrected input output docs * prefill with example instead of random * added curl and javascript syntax * removed scrollbars * API doc fixes * added correct docs to all pre/post processing methods * updated to new doc style * live demo with sample inputs * fixing golden screenshots * correct timeseries preprocess doc * correct timeseries preprocess doc * correct timeseries preprocess doc * fixed overwrite issue * remove static from git * fix merge * fix tests * fix tests * fix tests Co-authored-by: Ali Abid <you@example.comgit>
32 lines
693 B
Bash
Executable File
32 lines
693 B
Bash
Executable File
#!/bin/bash
|
|
|
|
git pull origin master
|
|
|
|
old_version=$(grep -Po "(?<=version=')[^']+(?=')" setup.py)
|
|
echo "Current version is $old_version. New version?"
|
|
read new_version
|
|
sed -i "s/version='$old_version'/version='$new_version'/g" setup.py
|
|
|
|
read -p "npm build? " -r
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
cd frontend
|
|
npm run build
|
|
cd ..
|
|
fi
|
|
|
|
read -p "frontend updates? " -r
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
aws s3 cp gradio/templates/frontend s3://gradio/$new_version/ --recursive
|
|
echo $new_version > gradio/version.txt
|
|
fi
|
|
|
|
rm -r dist/*
|
|
rm -r build/*
|
|
python3 setup.py sdist bdist_wheel
|
|
python3 -m twine upload dist/*
|
|
git add -A
|
|
git commit -m "updated PyPi version"
|
|
git push origin master
|