Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|