Spaces:
Running
Running
| import streamlit as st | |
| def APP(): | |
| st.title("newMATTER") | |
| st.markdown("> Engineering Programmable Biology") | |
| tab1, tab2, tab3 = st.tabs(["PROTEIN ENGINEERING LAB", "EXECUTED OPERATIONS", "LAB OUTPUT"]) | |
| def SHOWTABS(): | |
| st.markdown(""" | |
| <style> | |
| @keyframes blink { | |
| 0% { opacity: 1; } | |
| 50% { opacity: 0; } | |
| 100% { opacity: 1; } | |
| } | |
| .blinking-text { | |
| animation: blink 2s infinite; | |
| font-size: 20px; | |
| font-weight: bold; | |
| color: red; | |
| } | |
| </style> | |
| """, unsafe_allow_html=True) | |
| st.markdown('<div class="blinking-text"> CAUTION ! </div>', unsafe_allow_html=True) | |
| with tab1: | |
| with st.form("bio"): | |
| st.header(f"setup your project name @ {st.session_state.username}") | |
| project_name=st.text_input("enter project name ") | |
| st.header(f" your protein engineering query @ {st.session_state.username}") | |
| user_input = st.text_area( | |
| "Protein Engineering Query", | |
| placeholder="Type your query here." | |
| ) | |
| execute_button=st.form_submit_button("execute") | |
| if execute_button: | |
| st.session_state.projectname = project_name | |
| output=None | |
| if output: | |
| with console_container: | |
| st.code(f"> {output}", language="rust") | |
| st.success("Task completed!") | |
| else: | |
| with console_container: | |
| st.warning(">>>Error") | |
| with tab2: | |
| st.markdown("### Operations") | |
| with tab3: | |
| st.markdown("### Output") | |
| SHOWTABS() |