Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,9 @@ blocked_words = {
|
|
| 34 |
}
|
| 35 |
|
| 36 |
help_response = (
|
| 37 |
-
"
|
|
|
|
|
|
|
| 38 |
)
|
| 39 |
|
| 40 |
def contains_blocked(text):
|
|
@@ -140,4 +142,30 @@ body {
|
|
| 140 |
rgba(0,229,255,0.4)
|
| 141 |
);
|
| 142 |
border-radius: 12px;
|
| 143 |
-
box-shadow: 0 0 10px rgba(0,229,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
help_response = (
|
| 37 |
+
"I’m really glad you reached out. You deserve support and you don’t have to go through this alone.\n\n"
|
| 38 |
+
"Please visit https://findahelpline.com to find free, confidential support in your country right now.\n\n"
|
| 39 |
+
"If you’re in immediate danger, contact your local emergency number."
|
| 40 |
)
|
| 41 |
|
| 42 |
def contains_blocked(text):
|
|
|
|
| 142 |
rgba(0,229,255,0.4)
|
| 143 |
);
|
| 144 |
border-radius: 12px;
|
| 145 |
+
box-shadow: 0 0 10px rgba(0,229,255,0.6);
|
| 146 |
+
}
|
| 147 |
+
::-webkit-scrollbar-thumb:hover {
|
| 148 |
+
background: rgba(0,229,255,1);
|
| 149 |
+
}
|
| 150 |
+
* {
|
| 151 |
+
scrollbar-width: thin;
|
| 152 |
+
scrollbar-color: #00e5ff rgba(255,255,255,0.04);
|
| 153 |
+
}
|
| 154 |
+
footer {
|
| 155 |
+
display: none !important;
|
| 156 |
+
}
|
| 157 |
+
"""
|
| 158 |
+
|
| 159 |
+
with gr.Blocks(css=css, fill_height=True) as demo:
|
| 160 |
+
gr.Markdown(
|
| 161 |
+
"<div style='text-align:center;letter-spacing:0.25em;opacity:0.7;margin-bottom:6px;'>DEVMEGABLACK</div>"
|
| 162 |
+
)
|
| 163 |
+
chatbot = gr.Chatbot(show_label=False)
|
| 164 |
+
with gr.Row():
|
| 165 |
+
msg = gr.Textbox(placeholder="Type a message...", scale=4)
|
| 166 |
+
reset_btn = gr.Button("Reset", scale=1)
|
| 167 |
+
|
| 168 |
+
msg.submit(respond, msg, chatbot)
|
| 169 |
+
reset_btn.click(reset_chat, [], chatbot)
|
| 170 |
+
|
| 171 |
+
demo.launch()
|