Spaces:
Running
Running
import streamlit as st | |
# --- Page Configuration (Optional but good practice) --- | |
st.set_page_config( | |
page_title="BIOLAB", | |
page_icon=":computer:", | |
layout="wide", | |
#initial_sidebar_state="collapsed" | |
) | |
tab1, tab2, tab3 = st.tabs(["LAB", "OPS", "OUTPUT"]) | |
with tab1: | |
console_container = st.container(height=300, border=True) | |
with console_container: | |
st.code(">>> Ready for input...", language="bash") # Use st.code for a console look | |
user_input = st.text_input( | |
"Protein Engineering Query", | |
placeholder="Type something lengthy here... It could be code, a story, or just a lot of thoughts." | |
) | |
if st.button("Execute", use_container_width=True): | |
if user_input: | |
# Simulate processing and append to the console | |
with console_container: | |
st.markdown(f"**>>> Processing input...**") | |
st.code(f"Input received ({len(user_input)} characters):\n{user_input[:200]}...", language="text") # Show first 200 chars | |
st.success("Task completed!") | |
else: | |
with console_container: | |
st.warning(">>> Please enter some text before processing.") | |
with tab2: | |
st.markdown("###Operations") | |
with tab3: | |
st.markdown("###Output") |