Alberto Carmona commited on
Commit
fe7bd4a
·
1 Parent(s): 102ae13

Take the last part of the poem

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def make_poem(author, sentiment, words, text):
91
  def poem_generate(author, sentiment, words, text):
92
  poem_txt = make_poem(author, sentiment, words, text)
93
  # Pending: Translate poem to English, so that text can be the input of the latentdiffussion
94
- poem_img = poem_to_image(poem_txt)
95
  return poem_txt, poem_img
96
 
97
 
 
91
  def poem_generate(author, sentiment, words, text):
92
  poem_txt = make_poem(author, sentiment, words, text)
93
  # Pending: Translate poem to English, so that text can be the input of the latentdiffussion
94
+ poem_img = poem_to_image(poem_txt[-100:])
95
  return poem_txt, poem_img
96
 
97