Replicate the app from the image.
To upload files, please first save the app
import streamlit as st
st.title("Lab Transformer")
# Create three columns for the main sections
col1, col2, col3 = st.columns(3)
with col1:
st.text_input("", placeholder="Unassigned")
# List of devices
devices = ["Device 1", "Device 2", "Device 3"]
for device in devices:
st.text(device)
cols = st.columns([3, 1])
with cols[0]:
st.button("Config", key=f"config_{device}_unassigned")
with cols[1]:
st.button("Del", key=f"del_{device}_unassigned")
st.markdown("List of available configs \nfor device")
with col2:
st.text_input("", placeholder="CIN")
# List of devices
devices = ["Device 4", "Device 5", "Device 6"]
for device in devices:
st.text(device)
cols = st.columns([3, 1])
with cols[0]:
st.button("Config", key=f"config_{device}_cin")
with cols[1]:
st.button("Del", key=f"del_{device}_cin")
st.markdown("List of available configs \nwith tag 'CIN' for device")
with col3:
st.text_input("", placeholder="PRE-CIN")
# List of devices
devices = ["Device 7", "Device 8", "Device 9"]
for device in devices:
st.text(device)
cols = st.columns([3, 1])
with cols[0]:
st.button("Config", key=f"config_{device}_precin")
with cols[1]:
st.button("Del", key=f"del_{device}_precin")
st.markdown("List of available configs \nwith tag 'PRE-CIN' for device")
# Bottom buttons
col1, col2 = st.columns(2)
with col1:
st.button("Save (save changes, only active if filters are changed)")
with col2:
st.button("Undo (revert changes, only active if there are changes)")
# Add a menu on the left
with st.sidebar:
st.markdown("MENU")
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?