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