Update HuggingFace_OpenVINO_in_Spark_NLP_Qwen2VL.ipynb #4462
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish APIs | |
on: | |
push: | |
branches: | |
- "*release*" | |
- "release/**" | |
pull_request: | |
branches: | |
- "main" | |
- "master" | |
- "*release*" | |
- "release/**" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
if: "contains(toJSON(github.event.commits.*.message), '[run doc]')" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
architecture: "x64" | |
- name: Install SBT | |
run: | | |
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list | |
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sbt.gpg > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y sbt | |
- name: Build Scala APIs | |
run: sbt doc | |
- name: Install PyPI dependencies | |
run: | | |
python -m pip install --upgrade pip | |
cd ./python/docs && pip install -r requirements_doc.txt | |
- name: Build Python APIs | |
run: | | |
cd ./python/docs | |
# Run with verbose output to debug any issues | |
SPHINX_APIDOC_OPTIONS=members,undoc-members,show-inheritance sphinx-apidoc -e -f -o ./_api ../sparknlp ../sparknlp/tests | |
make html SPHINXOPTS="-v" | |
- name: Commit changes | |
id: commit | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "github-actions" | |
git add --all | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "push=false" >> $GITHUB_OUTPUT | |
else | |
git commit -m "Update Scala and Python APIs" -a | |
echo "push=true" >> $GITHUB_OUTPUT | |
fi | |
shell: bash | |
- name: Push changes | |
if: ${{ steps.commit.outputs.push == 'true' }} | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |