Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,10 +26,15 @@ CSS = """
|
|
| 26 |
}
|
| 27 |
"""
|
| 28 |
|
| 29 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
gr.HTML("""
|
| 31 |
<div class="header">
|
| 32 |
-
<h1>
|
| 33 |
<p>Official demo for <a href="https://github.com/viddexa/moderators" target="_blank">moderators</a> package</p>
|
| 34 |
<p>
|
| 35 |
<a href="https://huggingface.co/viddexa/nsfw-mini" target="_blank">Model: nsfw-mini</a> |
|
|
@@ -52,8 +57,8 @@ with gr.Blocks(title="Visual Content Moderation", css=CSS, theme=gr.themes.Defau
|
|
| 52 |
organization={IEEE}
|
| 53 |
}""",
|
| 54 |
show_label=False,
|
| 55 |
-
lines=
|
| 56 |
-
max_lines=
|
| 57 |
)
|
| 58 |
|
| 59 |
with gr.Row():
|
|
|
|
| 26 |
}
|
| 27 |
"""
|
| 28 |
|
| 29 |
+
with gr.Blocks(
|
| 30 |
+
title="Visual Content Moderation",
|
| 31 |
+
css=CSS,
|
| 32 |
+
theme=gr.themes.Default(primary_hue=gr.themes.colors.teal),
|
| 33 |
+
analytics_enabled=False,
|
| 34 |
+
) as demo:
|
| 35 |
gr.HTML("""
|
| 36 |
<div class="header">
|
| 37 |
+
<h1>Visual Content Moderation</h1>
|
| 38 |
<p>Official demo for <a href="https://github.com/viddexa/moderators" target="_blank">moderators</a> package</p>
|
| 39 |
<p>
|
| 40 |
<a href="https://huggingface.co/viddexa/nsfw-mini" target="_blank">Model: nsfw-mini</a> |
|
|
|
|
| 57 |
organization={IEEE}
|
| 58 |
}""",
|
| 59 |
show_label=False,
|
| 60 |
+
lines=9,
|
| 61 |
+
max_lines=9,
|
| 62 |
)
|
| 63 |
|
| 64 |
with gr.Row():
|