Prof-Hunt commited on
Commit
5028ed3
·
verified ·
1 Parent(s): 896cb40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -226,6 +226,7 @@ def generate_story(image_description):
226
 
227
  # Decode and format the story
228
  story = tokenizer_lm.decode(outputs[0])
 
229
  story = format_story_paragraphs(story) # Evenly distribute sentences
230
 
231
  clear_memory()
 
226
 
227
  # Decode and format the story
228
  story = tokenizer_lm.decode(outputs[0])
229
+ story = clean_story_output(story)
230
  story = format_story_paragraphs(story) # Evenly distribute sentences
231
 
232
  clear_memory()