nbroad HF staff commited on
Commit
c0a3b00
1 Parent(s): 025b08b

add created to date

Browse files

make ingredient and direction plural

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -110,7 +110,7 @@ class TextGeneration:
110
  # Info
111
  im_editable.text(
112
  (1570, 180),
113
- datetime.now().strftime("%Y-%m-%d %H:%M"),
114
  (61, 61, 70),
115
  font=self.fonts["sub_title"],
116
  )
@@ -306,11 +306,11 @@ def main():
306
  " ".join([
307
  "<div class='r-text-recipe'>",
308
  f"<h2>{title}</h2>",
309
- "<h3>Ingredient</h3>",
310
  "<ul class='ingredients-list'>",
311
  " ".join([f'<li>{item}</li>' for item in ingredients]),
312
  "</ul>",
313
- "<h3>Direction</h3>",
314
  "<ul class='ingredients-list'>",
315
  " ".join([f'<li>{item}</li>' for item in directions]),
316
  "</ul>",
 
110
  # Info
111
  im_editable.text(
112
  (1570, 180),
113
+ "Created " + datetime.now().strftime("%Y-%m-%d %H:%M"),
114
  (61, 61, 70),
115
  font=self.fonts["sub_title"],
116
  )
 
306
  " ".join([
307
  "<div class='r-text-recipe'>",
308
  f"<h2>{title}</h2>",
309
+ "<h3>Ingredients</h3>",
310
  "<ul class='ingredients-list'>",
311
  " ".join([f'<li>{item}</li>' for item in ingredients]),
312
  "</ul>",
313
+ "<h3>Directions</h3>",
314
  "<ul class='ingredients-list'>",
315
  " ".join([f'<li>{item}</li>' for item in directions]),
316
  "</ul>",