dperales commited on
Commit
e0787af
·
1 Parent(s): 1b23081

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2,6 +2,7 @@
2
  import streamlit as st
3
  import mlflow
4
  import pandas as pd
 
5
 
6
  # Set the MLflow tracking URI (e.g., local file system or a remote server)
7
  mlflow.set_tracking_uri("http://localhost:5000")
@@ -9,8 +10,11 @@ mlflow.set_tracking_uri("http://localhost:5000")
9
  def main():
10
  st.title("Streamlit and MLflow Integration")
11
 
 
 
 
12
  # Retrieve the list of experiments
13
- experiments = mlflow.list_experiments()
14
  experiment_names = [exp.name for exp in experiments]
15
  experiment_id_map = {exp.name: exp.experiment_id for exp in experiments}
16
 
 
2
  import streamlit as st
3
  import mlflow
4
  import pandas as pd
5
+ from mlflow.tracking import MlflowClient
6
 
7
  # Set the MLflow tracking URI (e.g., local file system or a remote server)
8
  mlflow.set_tracking_uri("http://localhost:5000")
 
10
  def main():
11
  st.title("Streamlit and MLflow Integration")
12
 
13
+ # Create an MlflowClient instance
14
+ client = MlflowClient()
15
+
16
  # Retrieve the list of experiments
17
+ experiments = client.list_experiments()
18
  experiment_names = [exp.name for exp in experiments]
19
  experiment_id_map = {exp.name: exp.experiment_id for exp in experiments}
20