Gopi9177 commited on
Commit
30d62a5
Β·
verified Β·
1 Parent(s): 7ce6572

Rename app.py to home.py

Browse files
Files changed (2) hide show
  1. app.py +0 -62
  2. home.py +65 -0
app.py DELETED
@@ -1,62 +0,0 @@
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
- # NLP Introduction with Emojis
7
- st.header('🌍 Introduction to Natural Language Processing (NLP)')
8
-
9
- st.markdown("""
10
- **Natural Language Processing (NLP)** is a field at the intersection of **Artificial Intelligence** and **Linguistics**. 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
- ### Key NLP Tasks πŸ”‘:
12
- - **Text Classification**: Assigning predefined labels to text (e.g., spam detection).
13
- - **Named Entity Recognition (NER)**: Identifying entities like names, dates, locations, etc.
14
- - **Sentiment Analysis**: Determining the sentiment (positive, negative, neutral) of text.
15
- - **Part-of-Speech (POS) Tagging**: Identifying the grammatical components (e.g., noun, verb).
16
- - **Machine Translation**: Translating text from one language to another.
17
- - **Text Generation**: Creating meaningful text based on input (like this application!).
18
- ### Why is NLP Important? πŸ’‘
19
- With a massive amount of unstructured textual data available online, **NLP** helps in extracting insights, automating tasks, and providing more personalized services. From chatbots to recommendation systems and search engines, NLP is reshaping how we interact with machines. 🌐
20
- ### Our Application 🌟
21
- In this interactive application, we leverage state-of-the-art models from **Hugging Face** to perform various NLP tasks. Whether you're new to NLP or looking to explore advanced techniques, you're in the right place! Let's dive in! πŸš€
22
- """)
23
-
24
- # Separator
25
- st.markdown("---")
26
-
27
- # About the Creator Section
28
- st.write("## πŸ‘€ About the Creator")
29
- st.markdown("""
30
- **Hi there! πŸ‘‹ I'm Gopi Krishna Venigandla**, a passionate **AI enthusiast** and **Data Science professional**.
31
- With a background in **Machine Learning**, I specialize in:
32
- """)
33
-
34
- # Skills Section in Columns
35
- skills_col1 = st.columns(1)
36
-
37
- with skills_col1:
38
- st.write("### πŸ› οΈ Skills")
39
- st.write("""
40
- - **Programming**: Python, R, SQL
41
- - **Data Visualization**: Tableau, Power BI, Matplotlib
42
- - **Machine Learning**: Scikit-Learn
43
- """)
44
-
45
- # Social Links with Buttons
46
- st.write("### 🌐 Connect with Me")
47
- col1, col2, col3 = st.columns(3)
48
-
49
- with col1:
50
- st.button("LinkedIn", on_click=lambda: st.write("You can check out my LinkedIn [here](https://www.linkedin.com/in/gopi-krishna-aa8641308/)"))
51
- with col2:
52
- st.button("Email Me", on_click=lambda: st.write("You can reach me at [[email protected]](mailto:[email protected])"))
53
- with col3:
54
- st.write("πŸ€™**Contact Number**: 8309183669")
55
-
56
- # Footer Section
57
- st.markdown("---")
58
- st.markdown("""
59
- <center>
60
- <p style='font-size:14px; color:#888;'> Β© 2024 AI & Data Science Hub. All Rights Reserved. </p>
61
- </center>
62
- """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
home.py ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Sidebar Navigation
4
+ st.sidebar.title("Navigation")
5
+ page = st.sidebar.radio("Go to", ["Home", "About Me", "Contact"])
6
+
7
+ if page == "Home":
8
+ st.title("πŸš€ Welcome to the NLP Application!")
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
+ **Hi there! πŸ‘‹ I'm Gopi Krishna Venigandla**, an **AI enthusiast** and **Data Science professional**.
39
+ With a background in **Machine Learning**, I specialize in:
40
+ """)
41
+
42
+ with st.expander("πŸ› οΈ My Skills"):
43
+ skills = {
44
+ "Programming": "Python, R, SQL",
45
+ "Data Visualization": "Tableau, Power BI, Matplotlib",
46
+ "Machine Learning": "Scikit-Learn"
47
+ }
48
+
49
+ for category, skillset in skills.items():
50
+ st.write(f"**{category}**: {skillset}")
51
+
52
+ elif page == "Contact":
53
+ st.title("πŸ“¬ Connect with Me")
54
+
55
+ st.write("[LinkedIn](https://www.linkedin.com/in/gopi-krishna-aa8641308/)")
56
+ st.write("πŸ“§ Email: [[email protected]](mailto:[email protected])")
57
+ st.write("πŸ“ž Contact: 8309183669")
58
+
59
+ # Footer Section
60
+ st.markdown("""
61
+ ---
62
+ <center>
63
+ <p style='font-size:14px; color:#888;'> Β© 2024 AI & Data Science Hub. All Rights Reserved. </p>
64
+ </center>
65
+ """, unsafe_allow_html=True)