Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def generate_story(caption):
|
|
34 |
story = story.split("Story:")[1].strip()
|
35 |
|
36 |
# Post-process the story (example: remove inappropriate words)
|
37 |
-
inappropriate_words = ["violence", "horror", "scary", "adult", "death", "gun", "shoot"]
|
38 |
for word in inappropriate_words:
|
39 |
story = story.replace(word, "")
|
40 |
|
|
|
34 |
story = story.split("Story:")[1].strip()
|
35 |
|
36 |
# Post-process the story (example: remove inappropriate words)
|
37 |
+
inappropriate_words = ["violence", "horror", "scary", "adult", "death", "gun", "shoot","criminal","rumors","die","died","kill","accident","drug","shot","ghost","sex"]
|
38 |
for word in inappropriate_words:
|
39 |
story = story.replace(word, "")
|
40 |
|