combat_frontend / pages /biolab.py
Junaidb's picture
Update pages/biolab.py
d9c9f01 verified
raw
history blame
1.37 kB
import streamlit as st
# --- Page Configuration (Optional but good practice) ---
st.set_page_config(
page_title="BIOLAB",
page_icon=":computer:",
layout="centered",
initial_sidebar_state="collapsed"
)
col1 , col2 = st.columns(2,gap="medium")
with col1:
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
st.text("Protein Engineering Query Here :")
user_input = st.text_input(
"PEQ",
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 col2:
with st.container(border=True):
st.write("Status Here")