Skip to content

Instantly share code, notes, and snippets.

@edoakes
Last active August 25, 2021 19:04
Show Gist options
  • Save edoakes/d6e073bbbf82b1dc7b86a4c154f1131f to your computer and use it in GitHub Desktop.
Save edoakes/d6e073bbbf82b1dc7b86a4c154f1131f to your computer and use it in GitHub Desktop.
import ray
from ray import serve
# Connect to the running Ray Serve instance.
ray.init(address='auto', namespace="serve-example", ignore_reinit_error=True)
serve.start(detached=True)
# Deploy the model.
SentimentDeployment.deploy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment