Skip to content

Instantly share code, notes, and snippets.

@khuyentran1401
Last active July 18, 2022 21:36
Show Gist options
  • Save khuyentran1401/f8d43fdabb446ba6ebd764dbe948da66 to your computer and use it in GitHub Desktop.
Save khuyentran1401/f8d43fdabb446ba6ebd764dbe948da66 to your computer and use it in GitHub Desktop.
from pathlib import Path
from prefect.deployments import Deployment, FlowScript
Deployment(
flow=FlowScript(
path=Path(__file__).parent / "train_model.py"
),
tags=["dev"],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment