Spaces:
Sleeping
Sleeping
notbulubula
commited on
Commit
·
22f8207
1
Parent(s):
85d264b
kosmetyki
Browse files
app.py
CHANGED
|
@@ -25,11 +25,11 @@ projects = {
|
|
| 25 |
"Competition 2": {"entity": "urbaniak-bruno-safescanai", "project": "basic-intro"},
|
| 26 |
# Add more projects as needed
|
| 27 |
}
|
| 28 |
-
|
| 29 |
|
| 30 |
# Sidebar for project selection
|
| 31 |
-
st.sidebar.title("
|
| 32 |
-
selected_project = st.sidebar.selectbox(
|
| 33 |
|
| 34 |
|
| 35 |
# Sidebar with buttons
|
|
@@ -42,7 +42,7 @@ option = st.sidebar.radio(
|
|
| 42 |
df = fetch_runs_to_df(api, projects, selected_project)
|
| 43 |
|
| 44 |
# Streamlit UI
|
| 45 |
-
st.title("W&B Data
|
| 46 |
|
| 47 |
# Sidebar filter options
|
| 48 |
st.sidebar.header("Filter Options")
|
|
@@ -66,7 +66,7 @@ st.dataframe(df)
|
|
| 66 |
if not df.empty:
|
| 67 |
selected_run_id = st.selectbox("Select a Run ID to see details", df["ID"].tolist())
|
| 68 |
run = fetch_run(api, projects, selected_project, selected_run_id)
|
| 69 |
-
|
| 70 |
if run:
|
| 71 |
run_df = run.history()
|
| 72 |
st.write(f"Details for run: {run.name}")
|
|
|
|
| 25 |
"Competition 2": {"entity": "urbaniak-bruno-safescanai", "project": "basic-intro"},
|
| 26 |
# Add more projects as needed
|
| 27 |
}
|
| 28 |
+
competitions = ["All", "Competition 1", "Competition 2"]
|
| 29 |
|
| 30 |
# Sidebar for project selection
|
| 31 |
+
st.sidebar.title("Competitions")
|
| 32 |
+
selected_project = st.sidebar.selectbox(competitions)
|
| 33 |
|
| 34 |
|
| 35 |
# Sidebar with buttons
|
|
|
|
| 42 |
df = fetch_runs_to_df(api, projects, selected_project)
|
| 43 |
|
| 44 |
# Streamlit UI
|
| 45 |
+
st.title("W&B Data")
|
| 46 |
|
| 47 |
# Sidebar filter options
|
| 48 |
st.sidebar.header("Filter Options")
|
|
|
|
| 66 |
if not df.empty:
|
| 67 |
selected_run_id = st.selectbox("Select a Run ID to see details", df["ID"].tolist())
|
| 68 |
run = fetch_run(api, projects, selected_project, selected_run_id)
|
| 69 |
+
|
| 70 |
if run:
|
| 71 |
run_df = run.history()
|
| 72 |
st.write(f"Details for run: {run.name}")
|