import streamlit as st def show(): # Custom styles for dark theme and remove top padding st.markdown(""" """, unsafe_allow_html=True) # Page title st.title("πŸ“˜ Help & Support - TransPolymer") st.markdown("
❓ Help Center - TransPolymer
", unsafe_allow_html=True) st.markdown("Welcome to the **TransPolymer Help Page**. This guide will walk you through how to use the app effectively.") # 1. Getting Started st.markdown("
πŸš€ Getting Started
", unsafe_allow_html=True) st.markdown(""" - **Step 1:** Go to the **Prediction** page. - **Step 2:** Enter a valid **SMILES string**. - **Step 3:** Click **Predict** to see the results. - The app will return **six polymer properties** based on your input. """) # 2. FAQ st.markdown("
πŸ“Œ Frequently Asked Questions
", unsafe_allow_html=True) with st.expander("🧬 What is a SMILES format?"): st.markdown("SMILES (Simplified Molecular Input Line Entry System) is a line notation for describing molecular structures using short ASCII strings.") with st.expander("❌ What if I enter an invalid SMILES string?"): st.markdown("The system will show an error if the SMILES string is incorrectly formatted or contains special characters.") # 3. Glossary / Terminology st.markdown("
πŸ“– Glossary
", unsafe_allow_html=True) with st.container(): st.markdown(""" - **Tensile Strength (MPa):** The maximum stress a material can withstand while being stretched or pulled before breaking. - **Ionization Energy (eV):** The energy required to remove an electron from a molecule or atom in its gaseous state. Higher values indicate more stability. - **Electron Affinity (eV):** The amount of energy released when an electron is added to a molecule or atom. - **logP:** The logarithm of the partition coefficient between octanol and water, indicating the compound's hydrophobicity. - **Refractive Index:** A measure of how much light bends (or refracts) when passing through a material. - **Molecular Weight (g/mol):** The mass of one mole of a substance’s molecules, calculated as the sum of atomic weights. """) # 4. Troubleshooting Tips st.markdown("
πŸ› οΈ Troubleshooting
", unsafe_allow_html=True) with st.container(): st.markdown(""" - ❌ **Common Mistakes**: - Extra spaces in SMILES strings - Using unsupported or uncommon formats - πŸ”„ **To Refresh**: Press `Ctrl+R` or click the "Rerun" button if something goes wrong. """) # 5. Support st.markdown("
πŸ“¬ Support
", unsafe_allow_html=True) st.markdown(""" For further help, reach us at πŸ“§ **transpolymer2@gmail.com** GitHub - https://github.com/Transpolymer """) # Run this file directly for testing if __name__ == "__main__": show()