Spaces:
Build error
Build error
update
Browse files
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 |
|