File size: 1,373 Bytes
5f6ece1
 
 
 
a8cbec9
5f6ece1
d9c9f01
5f6ece1
 
 
 
d667ecf
5f6ece1
a8cbec9
 
d9c9f01
d667ecf
a8cbec9
d667ecf
 
a8cbec9
d667ecf
 
d9c9f01
a8cbec9
d667ecf
 
 
 
 
 
 
 
 
 
 
a8cbec9
 
d667ecf
 
a8cbec9
 
 
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
43
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")