Spaces:
Running
Running
Update pages/biolab.py
Browse files- pages/biolab.py +14 -22
pages/biolab.py
CHANGED
@@ -9,35 +9,27 @@ st.set_page_config(
|
|
9 |
)
|
10 |
|
11 |
|
12 |
-
col1 , col2 = st.columns(2,gap="medium")
|
13 |
|
14 |
-
|
15 |
-
with col1:
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
if
|
28 |
-
if user_input:
|
29 |
# Simulate processing and append to the console
|
30 |
-
|
31 |
st.markdown(f"**>>> Processing input...**")
|
32 |
st.code(f"Input received ({len(user_input)} characters):\n{user_input[:200]}...", language="text") # Show first 200 chars
|
33 |
st.success("Task completed!")
|
34 |
-
|
35 |
-
|
36 |
st.warning(">>> Please enter some text before processing.")
|
37 |
|
38 |
-
with col2:
|
39 |
-
with st.container(border=True):
|
40 |
-
st.write("Status Here")
|
41 |
-
|
42 |
|
43 |
|
|
|
9 |
)
|
10 |
|
11 |
|
|
|
12 |
|
|
|
|
|
13 |
|
14 |
+
console_container = st.container(height=300, border=True)
|
15 |
+
|
16 |
+
with console_container:
|
17 |
+
st.code(">>> Ready for input...", language="bash") # Use st.code for a console look
|
18 |
+
|
19 |
+
user_input = st.text_input(
|
20 |
+
"Protein Engineering Query",
|
21 |
+
placeholder="Type something lengthy here... It could be code, a story, or just a lot of thoughts."
|
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:
|
27 |
st.markdown(f"**>>> Processing input...**")
|
28 |
st.code(f"Input received ({len(user_input)} characters):\n{user_input[:200]}...", language="text") # Show first 200 chars
|
29 |
st.success("Task completed!")
|
30 |
+
else:
|
31 |
+
with console_container:
|
32 |
st.warning(">>> Please enter some text before processing.")
|
33 |
|
|
|
|
|
|
|
|
|
34 |
|
35 |
|