Harika22/Machine_learning
0
1import streamlit as st2import pandas as pd3 4st.markdown("""5 <style>6 /* Set a soft background color */7 body {8 background-color: #eef2f7;9 }10 /* Style for main title */11 h1 {12 color: black;13 font-family: 'Roboto', sans-serif;14 font-weight: 700;15 text-align: center;16 margin-bottom: 25px;17 }18 /* Style for headers */19 h2 {20 color: black;21 font-family: 'Roboto', sans-serif;22 font-weight: 600;23 margin-top: 30px;24 }25 26 /* Style for subheaders */27 h3 {28 color: red;29 font-family: 'Roboto', sans-serif;30 font-weight: 500;31 margin-top: 20px;32 }33 .custom-subheader {34 color: black;35 font-family: 'Roboto', sans-serif;36 font-weight: 600;37 margin-bottom: 15px;38 }39 /* Paragraph styling */40 p {41 font-family: 'Georgia', serif;42 line-height: 1.8;43 color: black;44 margin-bottom: 20px;45 }46 /* List styling with checkmark bullets */47 .icon-bullet {48 list-style-type: none;49 padding-left: 20px;50 }51 .icon-bullet li {52 font-family: 'Georgia', serif;53 font-size: 1.1em;54 margin-bottom: 10px;55 color: black;56 }57 .icon-bullet li::before {58 content: "◆";59 padding-right: 10px;60 color: black;61 }62 /* Sidebar styling */63 .sidebar .sidebar-content {64 background-color: #ffffff;65 border-radius: 10px;66 padding: 15px;67 }68 .sidebar h2 {69 color: #495057;70 }71 /* Custom button style */72 .streamlit-button {73 background-color: #00FFFF;74 color: #000000;75 font-weight: bold;76 }77 </style>78 """, unsafe_allow_html=True)79 80def main():81 st.title("**Natural Language Processing**")82 st.header("**Text💬**")83 st.markdown('''84 - To represent text in numerical format and tabular format85 ''')86 st.markdown('''87 - Text is going to to use a field known as NLP(Natural Language Processing)88 - It is a sub-field in AI which guide the machine to process and analyze the natural language89 ''')90 st.subheader("**Natural Language Processing**")91 st.markdown('''92 - Programming language which is used to guide machine to understand and analyze the natural language93 ''')94 95 if st.button("Explore More"):96 st.markdown(97 '<a href="https://huggingface.co/spaces/Harika22/Natural_Language_Processing">Click here to explore!</a>',98 unsafe_allow_html=True,99 )100 101if __name__ == "__main__":102 main()103 104 