Spaces:
Runtime error
Runtime error
add created to date
Browse filesmake ingredient and direction plural
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>
|
310 |
"<ul class='ingredients-list'>",
|
311 |
" ".join([f'<li>{item}</li>' for item in ingredients]),
|
312 |
"</ul>",
|
313 |
-
"<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>",
|