Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -107,6 +107,19 @@ def respond(message, max_tokens, temperature, top_p):
|
|
107 |
# Crear la interfaz de Gradio usando Blocks
|
108 |
with gr.Blocks() as demo:
|
109 |
gr.Markdown("# Child-Safe-Chatbot")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
with gr.Accordion("Advanced", open=False):
|
112 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
|
|
107 |
# Crear la interfaz de Gradio usando Blocks
|
108 |
with gr.Blocks() as demo:
|
109 |
gr.Markdown("# Child-Safe-Chatbot")
|
110 |
+
gr.Markdown("""
|
111 |
+
### Description
|
112 |
+
This chatbot is designed to assist users while ensuring that all interactions comply with defined safety policies. It checks whether user inputs violate any of the following categories:
|
113 |
+
|
114 |
+
- Dangerous Content
|
115 |
+
- Harassment
|
116 |
+
- Hate Speech
|
117 |
+
- Sexually Explicit Information
|
118 |
+
|
119 |
+
The chatbot will inform the user if any violation occurs and, if not, will proceed to respond to the user's message in a friendly manner.
|
120 |
+
|
121 |
+
Follow me on [Twitter](https://twitter.com/norbertomartnaf) and [GitHub](https://github.com/nmarafo) for more updates and projects!
|
122 |
+
""")
|
123 |
|
124 |
with gr.Accordion("Advanced", open=False):
|
125 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|