Update app.py
Browse files
app.py
CHANGED
|
@@ -1,61 +1,54 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
st.
|
| 5 |
-
page = st.sidebar.radio("Go to", ["Home", "About Me", "Contact"])
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
st.subheader("π Introduction to Natural Language Processing (NLP)")
|
| 10 |
-
|
| 11 |
-
with st.expander("What is NLP? π€"):
|
| 12 |
-
st.write("""
|
| 13 |
-
**Natural Language Processing (NLP)** is a field at the intersection of **Artificial Intelligence** and **Linguistics**.
|
| 14 |
-
It enables machines to understand, interpret, and generate human language. From **speech recognition** to **text summarization** and **machine translation**, NLP is a game changer in technology.
|
| 15 |
-
""")
|
| 16 |
-
|
| 17 |
-
st.subheader("π Key NLP Tasks")
|
| 18 |
-
tasks = [
|
| 19 |
-
"Text Classification: Assigning predefined labels to text (e.g., spam detection).",
|
| 20 |
-
"Named Entity Recognition (NER): Identifying entities like names, dates, locations, etc.",
|
| 21 |
-
"Sentiment Analysis: Determining the sentiment (positive, negative, neutral) of text.",
|
| 22 |
-
"Part-of-Speech (POS) Tagging: Identifying the grammatical components (e.g., noun, verb).",
|
| 23 |
-
"Machine Translation: Translating text from one language to another.",
|
| 24 |
-
"Text Generation: Creating meaningful text based on input."
|
| 25 |
-
]
|
| 26 |
-
|
| 27 |
-
for task in tasks:
|
| 28 |
-
st.write(f"β
{task}")
|
| 29 |
-
|
| 30 |
-
st.subheader("π‘ Why is NLP Important?")
|
| 31 |
-
st.write(
|
| 32 |
-
"With vast amounts of unstructured textual data online, NLP helps extract insights, automate tasks, and provide personalized services. From chatbots to recommendation systems and search engines, NLP is reshaping human-computer interactions."
|
| 33 |
-
)
|
| 34 |
-
|
| 35 |
-
elif page == "About Me":
|
| 36 |
-
st.title("π€ About the Creator")
|
| 37 |
st.write("""
|
| 38 |
-
**
|
| 39 |
-
|
| 40 |
""")
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
st.
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
# Footer Section
|
| 60 |
st.markdown("""
|
| 61 |
---
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# Set the title and header for the application
|
| 4 |
+
st.title("π Welcome to the NLP Application!")
|
|
|
|
| 5 |
|
| 6 |
+
st.subheader("π Introduction to Natural Language Processing (NLP)")
|
| 7 |
+
with st.expander("What is NLP? π€"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
st.write("""
|
| 9 |
+
**Natural Language Processing (NLP)** is a field at the intersection of **Artificial Intelligence** and **Linguistics**.
|
| 10 |
+
It enables machines to understand, interpret, and generate human language. From **speech recognition** to **text summarization** and **machine translation**, NLP is a game changer in technology.
|
| 11 |
""")
|
| 12 |
+
|
| 13 |
+
st.subheader("π Key NLP Tasks")
|
| 14 |
+
tasks = [
|
| 15 |
+
"Text Classification: Assigning predefined labels to text (e.g., spam detection).",
|
| 16 |
+
"Named Entity Recognition (NER): Identifying entities like names, dates, locations, etc.",
|
| 17 |
+
"Sentiment Analysis: Determining the sentiment (positive, negative, neutral) of text.",
|
| 18 |
+
"Part-of-Speech (POS) Tagging: Identifying the grammatical components (e.g., noun, verb).",
|
| 19 |
+
"Machine Translation: Translating text from one language to another.",
|
| 20 |
+
"Text Generation: Creating meaningful text based on input."
|
| 21 |
+
]
|
| 22 |
+
|
| 23 |
+
for task in tasks:
|
| 24 |
+
st.write(f"β
{task}")
|
| 25 |
+
|
| 26 |
+
st.subheader("π‘ Why is NLP Important?")
|
| 27 |
+
st.write(
|
| 28 |
+
"With vast amounts of unstructured textual data online, NLP helps extract insights, automate tasks, and provide personalized services. From chatbots to recommendation systems and search engines, NLP is reshaping human-computer interactions."
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
+
st.title("π€ About the Creator")
|
| 32 |
+
st.write("""
|
| 33 |
+
**Hi there! π I'm Gopi Krishna Venigandla**, an **AI enthusiast** and **Data Science professional**.
|
| 34 |
+
With a background in **Machine Learning**, I specialize in:
|
| 35 |
+
""")
|
| 36 |
+
|
| 37 |
+
with st.expander("π οΈ My Skills"):
|
| 38 |
+
skills = {
|
| 39 |
+
"Programming": "Python, R, SQL",
|
| 40 |
+
"Data Visualization": "Tableau, Power BI, Matplotlib",
|
| 41 |
+
"Machine Learning": "Scikit-Learn"
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
for category, skillset in skills.items():
|
| 45 |
+
st.write(f"**{category}**: {skillset}")
|
| 46 |
+
|
| 47 |
+
st.title("π¬ Connect with Me")
|
| 48 |
+
st.write("[LinkedIn](https://www.linkedin.com/in/gopi-krishna-aa8641308/)")
|
| 49 |
+
st.write("π§ Email: [[email protected]](mailto:[email protected])")
|
| 50 |
+
st.write("π Contact: 8309183669")
|
| 51 |
+
|
| 52 |
# Footer Section
|
| 53 |
st.markdown("""
|
| 54 |
---
|