We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a4a421 commit 29b832fCopy full SHA for 29b832f
1 file changed
vetiver/write_fastapi.py
@@ -17,7 +17,7 @@ def _choose_version(df: pd.DataFrame):
17
version_desc = df.sort_values(by="created", ascending=False)
18
version = version_desc.version[0]
19
else:
20
- version = df.version[-1]
+ version = df.version[0]
21
warnings.warn(
22
f"""Pinned vetiver model has no active version and no datetime on versions,
23
Do you need to check your pinned model?
0 commit comments