Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 68 |
-
|
| 69 |
-
animation: gradientBG 10s ease infinite;
|
| 70 |
margin: 0;
|
| 71 |
padding: 0;
|
| 72 |
-
|
| 73 |
}
|
| 74 |
|
| 75 |
@keyframes gradientBG {
|
| 76 |
-
0% { background-
|
| 77 |
-
50% { background-
|
| 78 |
-
100% { background-
|
| 79 |
}
|
| 80 |
|
| 81 |
header, footer {
|
| 82 |
text-align: center;
|
| 83 |
-
background: linear-gradient(90deg, #
|
| 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.
|
| 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(
|
| 97 |
padding: 1rem;
|
| 98 |
height: 400px;
|
| 99 |
overflow-y: auto;
|
| 100 |
-
box-shadow: 0px 4px
|
| 101 |
}
|
| 102 |
|
| 103 |
input, button {
|
|
@@ -109,13 +108,13 @@ input, button {
|
|
| 109 |
}
|
| 110 |
|
| 111 |
input {
|
| 112 |
-
background: #
|
| 113 |
-
color: #
|
| 114 |
font-size: 1rem;
|
| 115 |
}
|
| 116 |
|
| 117 |
button {
|
| 118 |
-
background: linear-gradient(90deg, #
|
| 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, #
|
| 128 |
}
|
| 129 |
|
| 130 |
.chat-category {
|
| 131 |
-
background: rgba(
|
| 132 |
-
border: 2px solid #
|
| 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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
}
|
| 143 |
""")
|
| 144 |
|
| 145 |
with chat_interface:
|
| 146 |
with gr.Row():
|
| 147 |
-
gr.Markdown("<h1 style='text-align:center;'>
|
| 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():
|