Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

st_dashboard.py 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  1. import streamlit as st
  2. from st_scripts.st_evaluate_single_model import st_evaluate_single_model
  3. from st_scripts.st_inference import st_inference
  4. from st_scripts.st_list_model import st_list_model
  5. #%%
  6. st.set_page_config(
  7. page_title="Dvc + Streamlit = ❤",
  8. layout="wide",
  9. initial_sidebar_state="expanded",
  10. )
  11. st.title("Dvc + Streamlit = ❤️")
  12. class DashboardActions:
  13. MODEL_LIST = "See All Models"
  14. MODEL_INFERENCE = "Model Inference"
  15. MODEL_EVALUATION = "Explore Performance on the Test Set"
  16. #%%
  17. selected_dashboard_action = st.sidebar.selectbox(
  18. "What do you want to do?",
  19. (
  20. DashboardActions.MODEL_LIST,
  21. DashboardActions.MODEL_INFERENCE,
  22. DashboardActions.MODEL_EVALUATION,
  23. ),
  24. )
  25. print("Selected dashboard action:", selected_dashboard_action)
  26. if selected_dashboard_action == DashboardActions.MODEL_LIST:
  27. st_list_model()
  28. elif selected_dashboard_action == DashboardActions.MODEL_INFERENCE:
  29. st_inference()
  30. elif selected_dashboard_action == DashboardActions.MODEL_EVALUATION:
  31. st_evaluate_single_model()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...