ysharma HF Staff commited on
Commit
4ca1b74
·
1 Parent(s): 4439ec5
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ import random
11
 
12
  dataset = load_dataset("ysharma/short_jokes", split="train")
13
  filtered_dataset = dataset.filter(
14
- lambda x: (True not in [nsfw in x["Joke"].lower() for nsfw in ["warning", "fuck", "dead", "nsfw","69", "sex", "prostitute","prostitutes", "pedophiles", "pedophile"]])
15
  )
16
 
17
 
 
11
 
12
  dataset = load_dataset("ysharma/short_jokes", split="train")
13
  filtered_dataset = dataset.filter(
14
+ lambda x: (True not in [nsfw in x["Joke"].lower() for nsfw in ["warning", "blow job", "fuck", "dead", "nsfw","69", "sex", "prostitute","prostitutes", "pedophiles", "pedophile"]])
15
  )
16
 
17