Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,12 @@ else

# Check for version warning comments in examples
output=$(cd "$ROOT/examples" && find . -type f \
! -name "README.md" \
! -path "./README.md" \
! -path "./utils/*" \
! -name "*.json" \
! -name "*.txt" \
! -name ".*" \
-exec grep -L "WARNING: you are on the master branch, please refer to the examples on the branch that matches your \`cortex version\`" {} \;)
-exec grep -L "WARNING: you are on the master branch; please refer to examples on the branch corresponding to your \`cortex version\` (e\.g\. for version [0-9]*\.[0-9]*\.\*, run \`git checkout -b [0-9]*\.[0-9]*\` or switch to the \`[0-9]*\.[0-9]*\` branch on GitHub)" {} \;)
if [[ $output ]]; then
echo "example file(s) are missing version appropriate comment:"
echo "$output"
Expand Down
43 changes: 41 additions & 2 deletions dev/update_version_comments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,50 @@ set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"

arg1="${1:-""}"

git_branch="${CIRCLE_BRANCH:-""}"
if [ "$git_branch" = "" ]; then
git_branch=$(cd "$ROOT" && git rev-parse --abbrev-ref HEAD)
fi

if [ -z "$git_branch" ]; then
echo "error: unable to determine git branch"
exit 1
fi

if [ "$git_branch" = "master" ]; then
if [ -z "$arg1" ]; then
echo "error: use \`./dev/update_version_comments.sh <minor_version>\` to update all docs and examples warnings"
exit 1
fi

if [[ "$OSTYPE" == "darwin"* ]]; then
cd "$ROOT" && find . -type f \
! -path "./build/lint.sh" \
! -path "./dev/update_version_comments.sh" \
! -path "./vendor/*" \
! -path "./bin/*" \
! -path "./.git/*" \
! -name ".*" \
-print0 | \
xargs -0 sed -i '' -e "s/WARNING: you are on the master branch; please refer to examples on the branch corresponding to your \`cortex version\` [(]e\.g\. for version [0-9]*\.[0-9]*\.\*, run \`git checkout -b [0-9]*\.[0-9]*\` or switch to the \`[0-9]*\.[0-9]*\` branch on GitHub[)]/WARNING: you are on the master branch; please refer to examples on the branch corresponding to your \`cortex version\` (e.g. for version ${arg1}.*, run \`git checkout -b ${arg1}\` or switch to the \`${arg1}\` branch on GitHub)/"
else
cd "$ROOT" && find . -type f \
! -path "./build/lint.sh" \
! -path "./dev/update_version_comments.sh" \
! -path "./vendor/*" \
! -path "./bin/*" \
! -path "./.git/*" \
! -name ".*" \
-print0 | \
xargs -0 sed -i "s/WARNING: you are on the master branch; please refer to examples on the branch corresponding to your \`cortex version\` [(]e\.g\. for version [0-9]*\.[0-9]*\.\*, run \`git checkout -b [0-9]*\.[0-9]*\` or switch to the \`[0-9]*\.[0-9]*\` branch on GitHub[)]/WARNING: you are on the master branch; please refer to examples on the branch corresponding to your \`cortex version\` (e.g. for version ${arg1}.*, run \`git checkout -b ${arg1}\` or switch to the \`${arg1}\` branch on GitHub)/"
fi

echo "done"
exit 0
fi

if ! echo "$git_branch" | grep -Eq ^[0-9]+.[0-9]+$; then
echo "error: this is meant to be run on release branches"
exit 1
Expand Down Expand Up @@ -60,7 +99,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
! -path "./.git/*" \
! -name ".*" \
-print0 | \
xargs -0 sed -i '' -e "s/WARNING: you are on the master branch, please refer to the examples on the branch that matches your \`cortex version\`/this is an example for cortex release ${git_branch} and may not deploy correctly on other releases of cortex/"
xargs -0 sed -i '' -e "s/WARNING: you are on the master branch; please refer to examples on the branch corresponding to your \`cortex version\` [(]e\.g\. for version [0-9]*\.[0-9]*\.\*, run \`git checkout -b [0-9]*\.[0-9]*\` or switch to the \`[0-9]*\.[0-9]*\` branch on GitHub[)]/this is an example for cortex release ${git_branch} and may not deploy correctly on other releases of cortex/"
else
cd "$ROOT" && find . -type f \
! -path "./build/lint.sh" \
Expand All @@ -70,7 +109,7 @@ else
! -path "./.git/*" \
! -name ".*" \
-print0 | \
xargs -0 sed -i "s/WARNING: you are on the master branch, please refer to the examples on the branch that matches your \`cortex version\`/this is an example for cortex release ${git_branch} and may not deploy correctly on other releases of cortex/"
xargs -0 sed -i "s/WARNING: you are on the master branch; please refer to examples on the branch corresponding to your \`cortex version\` [(]e\.g\. for version [0-9]*\.[0-9]*\.\*, run \`git checkout -b [0-9]*\.[0-9]*\` or switch to the \`[0-9]*\.[0-9]*\` branch on GitHub[)]/this is an example for cortex release ${git_branch} and may not deploy correctly on other releases of cortex/"
fi

echo "done"
2 changes: 1 addition & 1 deletion examples/apisplitter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Splitting traffic between APIs

_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_
_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

This example shows how to split traffic between 2 different iris-classifiers deployed as SyncAPIs.

Expand Down
2 changes: 1 addition & 1 deletion examples/apisplitter/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: iris-classifier-onnx
kind: SyncAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/apisplitter/onnx_predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

labels = ["setosa", "versicolor", "virginica"]

Expand Down
2 changes: 1 addition & 1 deletion examples/apisplitter/tensorflow_predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

labels = ["setosa", "versicolor", "virginica"]

Expand Down
2 changes: 1 addition & 1 deletion examples/batch/image-classifier/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deploy models as Batch APIs

_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_
_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

This example shows how to deploy a batch image classification api that accepts a list of image urls as input, downloads the images, classifies them, and writes the results to S3.

Expand Down
2 changes: 1 addition & 1 deletion examples/batch/image-classifier/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: image-classifier
kind: BatchAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/batch/image-classifier/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import os
import requests
Expand Down
2 changes: 1 addition & 1 deletion examples/batch/onnx/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Batch Image Classifier in ONNX

You can deploy this example by cloning this repo with `git clone -b v<CORTEX_VERSION> https://github.com/cortexlabs/cortex`. The `<CORTEX_VERSION>` should be substituted with the version of your Cortex CLI. For example, if the output of `cortex version` is 0.18.1, the clone command would be `git clone -b v0.18.1 https://github.com/cortexlabs/cortex`. Then navigate to this example directory.
_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

<!-- CORTEX_VERSION_MINOR -->
Please refer to the [tutorial](https://docs.cortex.dev/v/master/batchapi/image-classifier#deploy-your-batch-api) to see how to deploy a Batch API with Cortex.
2 changes: 1 addition & 1 deletion examples/batch/onnx/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: image-classifier
kind: BatchAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/batch/onnx/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import requests
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion examples/batch/tensorflow/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Batch Image Classifier in TensorFlow

You can deploy this example by cloning this repo with `git clone -b v<CORTEX_VERSION> https://github.com/cortexlabs/cortex`. The `<CORTEX_VERSION>` should be substituted with the version of your Cortex CLI. For example, if the output of `cortex version` is 0.18.1, the clone command would be `git clone -b v0.18.1 https://github.com/cortexlabs/cortex`. Then navigate to this example directory.
_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

<!-- CORTEX_VERSION_MINOR -->
Please refer to the [tutorial](https://docs.cortex.dev/v/master/batchapi/image-classifier#deploy-your-batch-api) to see how to deploy a Batch API with Cortex.
2 changes: 1 addition & 1 deletion examples/batch/tensorflow/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: image-classifier
kind: BatchAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/batch/tensorflow/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import requests
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions examples/keras/document-denoiser/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Clean Dirty Documents w/ Autoencoders

_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

This example model cleans text documents of anything that isn't text (aka noise): coffee stains, old wear artifacts, etc. You can inspect the notebook that has been used to train the model [here](trainer.ipynb).

Here's a collage of input texts and predictions.
Expand Down
2 changes: 1 addition & 1 deletion examples/keras/document-denoiser/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: document-denoiser
kind: SyncAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/keras/document-denoiser/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import boto3, base64, cv2, re, os, requests
from botocore import UNSIGNED
Expand Down
2 changes: 1 addition & 1 deletion examples/keras/document-denoiser/trainer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"metadata": {},
"outputs": [],
"source": [
"# _WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n",
"# _WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_\n",
"\n",
"\n",
"import keras\n",
Expand Down
2 changes: 2 additions & 0 deletions examples/onnx/iris-classifier/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

Please refer to the [tutorial](https://docs.cortex.dev/iris-classifier) to see how to deploy an example with Cortex.
2 changes: 1 addition & 1 deletion examples/onnx/iris-classifier/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: iris-classifier
kind: SyncAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/onnx/iris-classifier/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

labels = ["setosa", "versicolor", "virginica"]

Expand Down
2 changes: 1 addition & 1 deletion examples/onnx/iris-classifier/xgboost.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"source": [
"# Training an Iris classifier using XGBoost\n",
"\n",
"_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n",
"_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_\n",
"\n",
"In this notebook, we'll show how to train a classifier trained on the [iris data set](https://archive.ics.uci.edu/ml/datasets/iris) using XGBoost."
]
Expand Down
2 changes: 2 additions & 0 deletions examples/onnx/multi-model-classifier/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Multi-Model Classifier API

_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

This example deploys ResNet50, MobileNet and ShuffleNet models in one API. Query parameters are used for selecting the model.

The example can be run on both CPU and on GPU hardware.
Expand Down
2 changes: 1 addition & 1 deletion examples/onnx/multi-model-classifier/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: multi-model-classifier
kind: SyncAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/onnx/multi-model-classifier/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import numpy as np
import cv2, requests
Expand Down
2 changes: 2 additions & 0 deletions examples/onnx/yolov5-youtube/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# YOLOv5 Detection model

_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

This example deploys a detection model trained using [ultralytics' yolo repo](https://github.com/ultralytics/yolov5) using ONNX.
We'll use the `yolov5s` model as an example here.
In can be used to run inference on youtube videos and returns the annotated video with bounding boxes.
Expand Down
2 changes: 1 addition & 1 deletion examples/onnx/yolov5-youtube/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: yolov5-youtube
kind: SyncAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/onnx/yolov5-youtube/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import json
import os
Expand Down
2 changes: 1 addition & 1 deletion examples/onnx/yolov5-youtube/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import youtube_dl
import ffmpeg
Expand Down
2 changes: 2 additions & 0 deletions examples/pytorch/answer-generator/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

Please refer to the [tutorial](https://docs.cortex.dev/iris-classifier) to see how to deploy an example with Cortex.
2 changes: 1 addition & 1 deletion examples/pytorch/answer-generator/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: answer-generator
kind: SyncAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch/answer-generator/generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

# This file includes code which was modified from https://colab.research.google.com/drive/1KTLqiAOdKM_3RnBWfqgrvOQLqumUyOdA

Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch/answer-generator/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import wget
import torch
Expand Down
2 changes: 2 additions & 0 deletions examples/pytorch/image-classifier-alexnet/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
_WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)_

Please refer to the [tutorial](https://docs.cortex.dev/iris-classifier) to see how to deploy an example with Cortex.
2 changes: 1 addition & 1 deletion examples/pytorch/image-classifier-alexnet/cortex.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

- name: image-classifier-alexnet
kind: SyncAPI
Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch/image-classifier-alexnet/predictor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`
# WARNING: you are on the master branch; please refer to examples on the branch corresponding to your `cortex version` (e.g. for version 0.18.*, run `git checkout -b 0.18` or switch to the `0.18` branch on GitHub)

import requests
import torch
Expand Down
Loading