Machine_learning / pages /Natural_Language_Processing.py
Harika22's picture
Update pages/Natural_Language_Processing.py
87f8f5d verified
import streamlit as st
import pandas as pd
st.markdown("""
<style>
/* Set a soft background color */
body {
background-color: #eef2f7;
}
/* Style for main title */
h1 {
color: black;
font-family: 'Roboto', sans-serif;
font-weight: 700;
text-align: center;
margin-bottom: 25px;
}
/* Style for headers */
h2 {
color: black;
font-family: 'Roboto', sans-serif;
font-weight: 600;
margin-top: 30px;
}
/* Style for subheaders */
h3 {
color: red;
font-family: 'Roboto', sans-serif;
font-weight: 500;
margin-top: 20px;
}
.custom-subheader {
color: black;
font-family: 'Roboto', sans-serif;
font-weight: 600;
margin-bottom: 15px;
}
/* Paragraph styling */
p {
font-family: 'Georgia', serif;
line-height: 1.8;
color: black;
margin-bottom: 20px;
}
/* List styling with checkmark bullets */
.icon-bullet {
list-style-type: none;
padding-left: 20px;
}
.icon-bullet li {
font-family: 'Georgia', serif;
font-size: 1.1em;
margin-bottom: 10px;
color: black;
}
.icon-bullet li::before {
content: "◆";
padding-right: 10px;
color: black;
}
/* Sidebar styling */
.sidebar .sidebar-content {
background-color: #ffffff;
border-radius: 10px;
padding: 15px;
}
.sidebar h2 {
color: #495057;
}
/* Custom button style */
.streamlit-button {
background-color: #00FFFF;
color: #000000;
font-weight: bold;
}
</style>
""", unsafe_allow_html=True)
def main():
st.title("**Natural Language Processing**")
st.header("**Text💬**")
st.markdown('''
- To represent text in numerical format and tabular format
''')
st.markdown('''
- Text is going to to use a field known as NLP(Natural Language Processing)
- It is a sub-field in AI which guide the machine to process and analyze the natural language
''')
st.subheader("**Natural Language Processing**")
st.markdown('''
- Programming language which is used to guide machine to understand and analyze the natural language
''')
if st.button("Explore More"):
st.markdown(
'<a href="https://huggingface.co/spaces/Harika22/Natural_Language_Processing">Click here to explore!</a>',
unsafe_allow_html=True,
)
if __name__ == "__main__":
main()