Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +20 -2
Gradio_UI.py
CHANGED
|
@@ -260,8 +260,26 @@ class GradioUI:
|
|
| 260 |
|
| 261 |
def launch(self, **kwargs):
|
| 262 |
import gradio as gr
|
| 263 |
-
|
| 264 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
stored_messages = gr.State([])
|
| 266 |
file_uploads_log = gr.State([])
|
| 267 |
chatbot = gr.Chatbot(
|
|
|
|
| 260 |
|
| 261 |
def launch(self, **kwargs):
|
| 262 |
import gradio as gr
|
| 263 |
+
|
| 264 |
+
with gr.Blocks(
|
| 265 |
+
title="Content Moderation Agent",
|
| 266 |
+
fill_height=True,
|
| 267 |
+
css="""
|
| 268 |
+
.loading-message {
|
| 269 |
+
animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite;
|
| 270 |
+
}
|
| 271 |
+
@keyframes pulse {
|
| 272 |
+
0%, 100% { opacity: 1; }
|
| 273 |
+
50% { opacity: 0.5; }
|
| 274 |
+
}
|
| 275 |
+
"""
|
| 276 |
+
) as demo:
|
| 277 |
+
gr.Markdown(
|
| 278 |
+
"""
|
| 279 |
+
# Content Agent
|
| 280 |
+
I can help determine if online content is respectful. Feel free to provide me with text and I'll can let you know whether or not it is polite.
|
| 281 |
+
"""
|
| 282 |
+
)
|
| 283 |
stored_messages = gr.State([])
|
| 284 |
file_uploads_log = gr.State([])
|
| 285 |
chatbot = gr.Chatbot(
|