Spaces:
Running
Running
Update pages/biolab.py
Browse files- pages/biolab.py +23 -11
pages/biolab.py
CHANGED
@@ -1,26 +1,32 @@
|
|
1 |
import streamlit as st
|
2 |
|
|
|
|
|
|
|
3 |
# --- Page Configuration (Optional but good practice) ---
|
4 |
st.set_page_config(
|
5 |
page_title="BIOLAB",
|
6 |
page_icon=":computer:",
|
7 |
-
layout="
|
8 |
-
initial_sidebar_state="collapsed"
|
9 |
)
|
10 |
|
11 |
|
12 |
|
|
|
|
|
|
|
13 |
|
14 |
-
console_container = st.container(height=300, border=True)
|
15 |
|
16 |
-
with console_container:
|
17 |
-
|
18 |
|
19 |
-
user_input = st.text_input(
|
20 |
-
|
21 |
-
|
22 |
-
)
|
23 |
-
if st.button("Execute", use_container_width=True):
|
24 |
if user_input:
|
25 |
# Simulate processing and append to the console
|
26 |
with console_container:
|
@@ -32,4 +38,10 @@ if st.button("Execute", use_container_width=True):
|
|
32 |
st.warning(">>> Please enter some text before processing.")
|
33 |
|
34 |
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
# --- Page Configuration (Optional but good practice) ---
|
7 |
st.set_page_config(
|
8 |
page_title="BIOLAB",
|
9 |
page_icon=":computer:",
|
10 |
+
layout="wide",
|
11 |
+
#initial_sidebar_state="collapsed"
|
12 |
)
|
13 |
|
14 |
|
15 |
|
16 |
+
tab1, tab2, tab3 = st.tabs(["LAB", "OPS", "OUTPUT"])
|
17 |
+
|
18 |
+
with tab1:
|
19 |
|
20 |
+
console_container = st.container(height=300, border=True)
|
21 |
|
22 |
+
with console_container:
|
23 |
+
st.code(">>> Ready for input...", language="bash") # Use st.code for a console look
|
24 |
|
25 |
+
user_input = st.text_input(
|
26 |
+
"Protein Engineering Query",
|
27 |
+
placeholder="Type something lengthy here... It could be code, a story, or just a lot of thoughts."
|
28 |
+
)
|
29 |
+
if st.button("Execute", use_container_width=True):
|
30 |
if user_input:
|
31 |
# Simulate processing and append to the console
|
32 |
with console_container:
|
|
|
38 |
st.warning(">>> Please enter some text before processing.")
|
39 |
|
40 |
|
41 |
+
with tab2:
|
42 |
+
st.markdown("###Operations")
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
with tab3:
|
47 |
+
st.markdown("###Output")
|