import streamlit as st
# Define the show() function to display the About page
def show():
# Page title and content
st.markdown("
🌐 About TransPolymer
", unsafe_allow_html=True)
st.markdown("---")
# Why TransPolymer Section
st.markdown("""
Why TransPolymer
In TransPolymer, we use models like ChemBERTa to learn from SMILES strings — a special way to represent molecules.
This enables understanding of complex molecular structures and provides accurate predictions, even for new polymers.
""", unsafe_allow_html=True)
st.markdown("---")
# 🔬 Properties Predicted Section with Animated Cards
st.markdown("### 🔬 Properties Predicted by TransPolymer", unsafe_allow_html=True)
st.markdown("""
Tensile Strength
Ionization Energy
Electron Affinity
LogP
Refractive Index
Molecular Weight
""", unsafe_allow_html=True)
st.markdown("---")
# 👨🏫 Mentor Section
st.markdown("### 👨🏫 Our Mentor", unsafe_allow_html=True)
st.markdown("""
We are deeply grateful to our mentor, Mrs. Navatha Kolisetti, for her constant guidance and support throughout the TransPolymer project.
""", unsafe_allow_html=True)
st.markdown("---")
# 📚 SMILES Info and 🔍 Use Case with Pulse Animation
with st.container():
col1, col2 = st.columns(2)
with col1:
if st.button("📚 Learn More About SMILES"):
st.markdown("""
SMILES stands for Simplified Molecular Input Line Entry System.
It encodes molecules as text strings like C1=CC=CC=C1 (for Benzene).
SMILES is simple yet powerful, making it perfect for AI training on chemical data.
""", unsafe_allow_html=True)
with col2:
if st.button("🔍 Example Use Case"):
st.markdown("""
Imagine you're working on a biodegradable polymer for packaging.
You need one with low density and high flexibility.
Just enter the SMILES string and TransPolymer will predict its physical properties — instantly.
""", unsafe_allow_html=True)
st.markdown("""
""", unsafe_allow_html=True)
st.markdown("---")
# 💡 Modern Footer
st.markdown("""
© 2025 TransPolymer • Powered by AI & Polymer Science
""", unsafe_allow_html=True)