VcRlAgent commited on
Commit
72ee068
·
1 Parent(s): f5e2953

not loading sample

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -1
src/streamlit_app.py CHANGED
@@ -30,7 +30,12 @@ pipe = joblib.load(MODEL_PATH)
30
  def load_model():
31
  return joblib.load(MODEL_PATH)
32
 
 
 
 
33
  @st.cache_data
 
 
34
  def load_sample():
35
  try:
36
  df = pd.read_csv(DATA_PATH)
@@ -38,7 +43,6 @@ def load_sample():
38
  except Exception:
39
  return pd.DataFrame()
40
 
41
- pipe = load_model()
42
  df = load_sample()
43
 
44
  with st.expander("Sample data (first 50 rows)"):
@@ -46,6 +50,7 @@ with st.expander("Sample data (first 50 rows)"):
46
  st.dataframe(df.head(50), use_container_width=True)
47
  else:
48
  st.info("Sample CSV not found.")
 
49
 
50
  st.subheader("Enter runner metrics")
51
  cols = st.columns(2)
 
30
  def load_model():
31
  return joblib.load(MODEL_PATH)
32
 
33
+ pipe = load_model()
34
+
35
+
36
  @st.cache_data
37
+
38
+ """
39
  def load_sample():
40
  try:
41
  df = pd.read_csv(DATA_PATH)
 
43
  except Exception:
44
  return pd.DataFrame()
45
 
 
46
  df = load_sample()
47
 
48
  with st.expander("Sample data (first 50 rows)"):
 
50
  st.dataframe(df.head(50), use_container_width=True)
51
  else:
52
  st.info("Sample CSV not found.")
53
+ """
54
 
55
  st.subheader("Enter runner metrics")
56
  cols = st.columns(2)