Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
gr.load(
|
4 |
+
name="JanSt/albert-base-v2_mbti-classification",
|
5 |
+
src="models",
|
6 |
+
title="Toxic comment detection",
|
7 |
+
description="Say if the prompt is toxic or not.",
|
8 |
+
article="Check out the [model repo](https://huggingface.co/tillschwoerer/roberta-base-finetuned-toxic-comments-detection) that this demo is based off of.",
|
9 |
+
examples=[["""Let's focus on how we can use our talents and resources to make a positive difference -- I believe in everyone's potential to make a meaningful contribution."""],
|
10 |
+
["""Let's step back and consider the broad perspective — I'm sure we can identify the best path forward if we focus on the bigger picture."""],
|
11 |
+
["""Let's have some fun and let our imaginations run wild — I'm sure we can come up with something enjoyable if we tap into our creative energy."""]],
|
12 |
+
).launch()
|