Harika22 commited on
Commit
9a54a30
·
verified ·
1 Parent(s): 830e7e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +73 -20
app.py CHANGED
@@ -1,27 +1,80 @@
1
  import streamlit as st
2
 
3
- # Title with HTML styling
4
  st.markdown(
5
- "<h1 style='text-align: center; color: black;'>Natural Language Processing</h1>",
6
- unsafe_allow_html=True)
7
- st.caption("***Unlock the Power of Language: Bridging Communication Between Humans and Machines with NLP!...***")
8
- st.markdown("""
9
- <div style="text-align: center;">
10
- <img src="" width = 400>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </div>
12
  """,
13
- unsafe_allow_html=True)
 
14
 
15
- st.subheader(":violet[About the app]")
16
- st.markdown('''
17
- <p style="font-size:16px; text-align:justify; line-height:1.6">
18
- <b> From Words to Wonders: Mastering NLP</b>.
19
- Natural Language Processing (NLP) is where technology meets human language, turning words into powerful tools for innovation.
20
- Whether you're a curious beginner or a seasoned pro, this journey will take you from decoding basics to building smart systems like chatbots, translators, and sentiment analyzers.
21
- NLP is not just about algorithms—it's about understanding, creating, and transforming how we connect with the world.
 
 
 
 
22
  Step into the future of communication and let language lead the way!
23
-
24
- </p>
25
- ''', unsafe_allow_html=True)
26
-
27
- st.markdown("<br>", unsafe_allow_html=True)
 
1
  import streamlit as st
2
 
3
+ # Custom CSS for styling and animations
4
  st.markdown(
5
+ """
6
+ <style>
7
+ @keyframes fadeIn {
8
+ 0% { opacity: 0; transform: translateY(-20px); }
9
+ 100% { opacity: 1; transform: translateY(0); }
10
+ }
11
+ .title {
12
+ text-align: center;
13
+ color: #2c3e50;
14
+ font-size: 3rem;
15
+ font-weight: bold;
16
+ animation: fadeIn 1s ease-in-out;
17
+ }
18
+ .caption {
19
+ text-align: center;
20
+ font-style: italic;
21
+ font-size: 1.2rem;
22
+ color: #7f8c8d;
23
+ animation: fadeIn 1.5s ease-in-out;
24
+ }
25
+ .about {
26
+ font-size: 1.1rem;
27
+ text-align: justify;
28
+ line-height: 1.8;
29
+ color: #34495e;
30
+ animation: fadeIn 2s ease-in-out;
31
+ }
32
+ .image-container {
33
+ text-align: center;
34
+ margin-top: 20px;
35
+ animation: fadeIn 2.5s ease-in-out;
36
+ }
37
+ .image-container img {
38
+ border-radius: 15px;
39
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
40
+ }
41
+ </style>
42
+ """,
43
+ unsafe_allow_html=True,
44
+ )
45
+
46
+ # Title with CSS animation
47
+ st.markdown("<div class='title'>Natural Language Processing</div>", unsafe_allow_html=True)
48
+
49
+ # Caption with animation
50
+ st.markdown(
51
+ "<div class='caption'>***Unlock the Power of Language: Bridging Communication Between Humans and Machines with NLP!***</div>",
52
+ unsafe_allow_html=True,
53
+ )
54
+
55
+ # Centered Image with styling
56
+ st.markdown(
57
+ """
58
+ <div class='image-container'>
59
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/REaH0rQy3lM6fCF0vEBtt.jpeg" alt="NLP Image" width="400">
60
  </div>
61
  """,
62
+ unsafe_allow_html=True,
63
+ )
64
 
65
+ # About the app section with CSS styling
66
+ st.subheader(":violet[About the App]")
67
+ st.markdown(
68
+ '''
69
+ <div class='about'>
70
+ <b>From Words to Wonders: Mastering NLP</b><br>
71
+ Natural Language Processing (NLP) is where technology meets human language,
72
+ turning words into powerful tools for innovation.
73
+ Whether you're a curious beginner or a seasoned pro, this journey will take you
74
+ from decoding basics to building smart systems like chatbots, translators, and sentiment analyzers.
75
+ NLP is not just about algorithms—it's about understanding, creating, and transforming how we connect with the world.
76
  Step into the future of communication and let language lead the way!
77
+ </div>
78
+ ''',
79
+ unsafe_allow_html=True,
80
+ )