fcakyon commited on
Commit
eebea30
·
verified ·
1 Parent(s): c6a5049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -51,8 +51,8 @@ with gr.Blocks(
51
  <img src="https://github.com/viddexa/moderators/releases/download/v0.1.1/logo-v2.jpeg" alt="Visual Content Moderation" class="header-logo">
52
  <p>Official demo for the <a href="https://github.com/viddexa/moderators" target="_blank">moderators</a> package</p>
53
  <p>
54
- <a href="https://huggingface.co/viddexa/nsfw-mini" target="_blank">Model: nsfw-mini</a> |
55
- <a href="https://huggingface.co/viddexa/nsfw-nano" target="_blank">Model: nsfw-nano</a> |
56
  <a href="https://arxiv.org/abs/2312.16338" target="_blank">Arxiv</a> |
57
  <a href="https://github.com/viddexa/moderators" target="_blank">GitHub</a> |
58
  <a href="https://pypi.org/project/moderators/" target="_blank">PyPI</a>
@@ -78,8 +78,8 @@ with gr.Blocks(
78
  with gr.Row():
79
  with gr.Column(scale=1):
80
  model_choice = gr.Dropdown(
81
- choices=["viddexa/nsfw-detection-mini", "viddexa/nsfw-detection-nano"],
82
- value="viddexa/nsfw-detection-mini",
83
  label="Model",
84
  )
85
 
@@ -92,7 +92,7 @@ with gr.Blocks(
92
  analyze_btn = gr.Button("Analyze", variant="primary")
93
 
94
  with gr.Column(scale=1):
95
- output = gr.Label(label="Classification Scores", num_top_classes=10)
96
 
97
  gr.Markdown("### 🎯 Try an Example")
98
  gr.Examples(
 
51
  <img src="https://github.com/viddexa/moderators/releases/download/v0.1.1/logo-v2.jpeg" alt="Visual Content Moderation" class="header-logo">
52
  <p>Official demo for the <a href="https://github.com/viddexa/moderators" target="_blank">moderators</a> package</p>
53
  <p>
54
+ <a href="https://huggingface.co/viddexa/nsfw-detection-2-mini" target="_blank">Model: nsfw-detection-2-mini</a> |
55
+ <a href="https://huggingface.co/viddexa/nsfw-detection-2-nano" target="_blank">Model: nsfw-detection-2-nano</a> |
56
  <a href="https://arxiv.org/abs/2312.16338" target="_blank">Arxiv</a> |
57
  <a href="https://github.com/viddexa/moderators" target="_blank">GitHub</a> |
58
  <a href="https://pypi.org/project/moderators/" target="_blank">PyPI</a>
 
78
  with gr.Row():
79
  with gr.Column(scale=1):
80
  model_choice = gr.Dropdown(
81
+ choices=["viddexa/nsfw-detection-2-mini", "viddexa/nsfw-detection-2-nano"],
82
+ value="viddexa/nsfw-detection-2-mini",
83
  label="Model",
84
  )
85
 
 
92
  analyze_btn = gr.Button("Analyze", variant="primary")
93
 
94
  with gr.Column(scale=1):
95
+ output = gr.Label(label="Classification Scores", num_top_classes=5)
96
 
97
  gr.Markdown("### 🎯 Try an Example")
98
  gr.Examples(