SatyamSinghal commited on
Commit
c7471c3
·
verified ·
1 Parent(s): e534a8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -19
app.py CHANGED
@@ -64,28 +64,27 @@ def display_saved_chats():
64
  chat_interface = gr.Blocks(css="""
65
  body {
66
  font-family: 'Poppins', sans-serif;
67
- background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fbc2eb, #a1c4fd, #c2e9fb);
68
- background-size: 400% 400%;
69
- animation: gradientBG 10s ease infinite;
70
  margin: 0;
71
  padding: 0;
72
- color: #333;
73
  }
74
 
75
  @keyframes gradientBG {
76
- 0% { background-position: 0% 50%; }
77
- 50% { background-position: 100% 50%; }
78
- 100% { background-position: 0% 50%; }
79
  }
80
 
81
  header, footer {
82
  text-align: center;
83
- background: linear-gradient(90deg, #ff758c, #ff7eb3);
84
  color: white;
85
  padding: 1rem;
86
  border-radius: 15px;
87
  margin-bottom: 1rem;
88
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
89
  }
90
 
91
  .chatbot-container {
@@ -93,11 +92,11 @@ header, footer {
93
  flex-direction: column;
94
  justify-content: space-between;
95
  border-radius: 15px;
96
- background: rgba(255, 255, 255, 0.8);
97
  padding: 1rem;
98
  height: 400px;
99
  overflow-y: auto;
100
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
101
  }
102
 
103
  input, button {
@@ -109,13 +108,13 @@ input, button {
109
  }
110
 
111
  input {
112
- background: #fff;
113
- color: #ffffff;
114
  font-size: 1rem;
115
  }
116
 
117
  button {
118
- background: linear-gradient(90deg, #6a11cb, #2575fc);
119
  color: white;
120
  font-weight: bold;
121
  cursor: pointer;
@@ -124,27 +123,36 @@ button {
124
 
125
  button:hover {
126
  transform: scale(1.05);
127
- background: linear-gradient(90deg, #2575fc, #6a11cb);
128
  }
129
 
130
  .chat-category {
131
- background: rgba(0, 0, 0, 0.05);
132
- border: 2px solid #ff7eb3;
133
  margin: 1rem 0;
134
  padding: 1rem;
135
  border-radius: 10px;
136
  transition: transform 0.2s, box-shadow 0.2s;
 
137
  }
138
 
139
  .chat-category:hover {
140
  transform: translateY(-3px);
141
- box-shadow: 0px 4px 15px rgba(255, 127, 179, 0.5);
 
 
 
 
 
 
 
 
142
  }
143
  """)
144
 
145
  with chat_interface:
146
  with gr.Row():
147
- gr.Markdown("<h1 style='text-align:center;'>🌈 Vibrant Motivational Chatbot</h1>")
148
  with gr.Row():
149
  gr.Markdown("**Feeling stressed or unmotivated? Share your thoughts and let me help!**")
150
  with gr.Row():
 
64
  chat_interface = gr.Blocks(css="""
65
  body {
66
  font-family: 'Poppins', sans-serif;
67
+ background: linear-gradient(120deg, #000000, #1c1c1c);
68
+ color: #ffffff;
 
69
  margin: 0;
70
  padding: 0;
71
+ animation: gradientBG 12s ease infinite;
72
  }
73
 
74
  @keyframes gradientBG {
75
+ 0% { background-color: #1c1c1c; }
76
+ 50% { background-color: #000000; }
77
+ 100% { background-color: #1c1c1c; }
78
  }
79
 
80
  header, footer {
81
  text-align: center;
82
+ background: linear-gradient(90deg, #6a11cb, #2575fc);
83
  color: white;
84
  padding: 1rem;
85
  border-radius: 15px;
86
  margin-bottom: 1rem;
87
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
88
  }
89
 
90
  .chatbot-container {
 
92
  flex-direction: column;
93
  justify-content: space-between;
94
  border-radius: 15px;
95
+ background: rgba(50, 50, 50, 0.8);
96
  padding: 1rem;
97
  height: 400px;
98
  overflow-y: auto;
99
+ box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8);
100
  }
101
 
102
  input, button {
 
108
  }
109
 
110
  input {
111
+ background: #222;
112
+ color: #fff;
113
  font-size: 1rem;
114
  }
115
 
116
  button {
117
+ background: linear-gradient(90deg, #ff6a95, #ff4b81);
118
  color: white;
119
  font-weight: bold;
120
  cursor: pointer;
 
123
 
124
  button:hover {
125
  transform: scale(1.05);
126
+ background: linear-gradient(90deg, #ff4b81, #ff6a95);
127
  }
128
 
129
  .chat-category {
130
+ background: rgba(40, 40, 40, 0.8);
131
+ border: 2px solid #6a11cb;
132
  margin: 1rem 0;
133
  padding: 1rem;
134
  border-radius: 10px;
135
  transition: transform 0.2s, box-shadow 0.2s;
136
+ color: #fff;
137
  }
138
 
139
  .chat-category:hover {
140
  transform: translateY(-3px);
141
+ box-shadow: 0px 4px 15px rgba(106, 17, 203, 0.8);
142
+ }
143
+
144
+ h1, h3 {
145
+ color: #ffffff;
146
+ }
147
+
148
+ p {
149
+ color: #b3b3b3;
150
  }
151
  """)
152
 
153
  with chat_interface:
154
  with gr.Row():
155
+ gr.Markdown("<h1 style='text-align:center;'>🌌 Dark-Themed Motivational Chatbot</h1>")
156
  with gr.Row():
157
  gr.Markdown("**Feeling stressed or unmotivated? Share your thoughts and let me help!**")
158
  with gr.Row():