Spaces:
Runtime error
Runtime error
Fix ui
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ class TextGeneration:
|
|
50 |
'1 potato',
|
51 |
'1 slice cheese',
|
52 |
],
|
53 |
-
'title': 'Cheese Potatoes'
|
54 |
}
|
55 |
self.tokenizer = None
|
56 |
self.generator = None
|
@@ -100,12 +100,12 @@ class TextGeneration:
|
|
100 |
ws, hs = 120, 500
|
101 |
im_editable.text(
|
102 |
(ws, hs),
|
103 |
-
textwrap.fill(recipe["title"],
|
104 |
(61, 61, 70),
|
105 |
font=self.h1_font,
|
106 |
)
|
107 |
# Ingredients
|
108 |
-
hs = hs +
|
109 |
im_editable.text(
|
110 |
(ws, hs),
|
111 |
"Ingredients",
|
|
|
50 |
'1 potato',
|
51 |
'1 slice cheese',
|
52 |
],
|
53 |
+
'title': 'Cheese Potatoes with Some other items'
|
54 |
}
|
55 |
self.tokenizer = None
|
56 |
self.generator = None
|
|
|
100 |
ws, hs = 120, 500
|
101 |
im_editable.text(
|
102 |
(ws, hs),
|
103 |
+
textwrap.fill(recipe["title"], 20),
|
104 |
(61, 61, 70),
|
105 |
font=self.h1_font,
|
106 |
)
|
107 |
# Ingredients
|
108 |
+
hs = hs + 270
|
109 |
im_editable.text(
|
110 |
(ws, hs),
|
111 |
"Ingredients",
|