m3hrdadfi commited on
Commit
8619f5d
1 Parent(s): 6b055a3

Fix long title

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ class TextGeneration:
100
  ws, hs = 120, 500
101
  im_editable.text(
102
  (ws, hs),
103
- recipe["title"],
104
  (61, 61, 70),
105
  font=self.h1_font,
106
  )
 
100
  ws, hs = 120, 500
101
  im_editable.text(
102
  (ws, hs),
103
+ textwrap.fill(recipe["title"], 50),
104
  (61, 61, 70),
105
  font=self.h1_font,
106
  )