kl08 commited on
Commit
2fe7d6b
1 Parent(s): f4d74cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1,3 +1,12 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/JanSt/albert-base-v2_mbti-classification").launch()
 
 
 
 
 
 
 
 
 
 
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()