package unsupported ml model

This commit is contained in:
2023-03-10 15:03:21 +08:00
parent 1f86146b12
commit 4bf037de15
4 changed files with 86 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import torch
import mlflow
if __name__ == '__main__':
def main():
# set MLflow server
mlflow.set_tracking_uri('http://127.0.0.1:5001')
@ -21,4 +21,8 @@ if __name__ == '__main__':
print(my_fortune)
# save model and env to local file system
mlflow.pytorch.save_model(model, './fortune_predict_model')
mlflow.pytorch.save_model(model, './model')
if __name__ == '__main__':
main()