koey811 commited on
Commit
ef3e97a
·
verified ·
1 Parent(s): 5235e45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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