htahir1 commited on
Commit
9b3efcc
β€’
1 Parent(s): fa2fc5f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -3,6 +3,14 @@ import numpy as np
3
  import pandas as pd
4
  from sklearn.datasets import load_breast_cancer
5
  from zenml.client import Client
 
 
 
 
 
 
 
 
6
 
7
  client = Client()
8
  zenml_model_version = client.get_model_version("breast_cancer_classifier", "production")
 
3
  import pandas as pd
4
  from sklearn.datasets import load_breast_cancer
5
  from zenml.client import Client
6
+ import os
7
+
8
+ ZENML_STORE_API_KEY = os.getenv("ZENML_STORE_API_KEY", None)
9
+ ZENML_STORE_URL = os.getenv("ZENML_STORE_URL", None)
10
+
11
+ if ZENML_STORE_API_KEY:
12
+ # Use os.process to call zenml connect --url ZENML_STORE_URL --api-key ZENML_STORE_API_KEY
13
+ os.system(f"zenml connect --url {ZENML_STORE_URL} --api-key {ZENML_STORE_API_KEY}")
14
 
15
  client = Client()
16
  zenml_model_version = client.get_model_version("breast_cancer_classifier", "production")