Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,9 +55,9 @@ def extract_info(output_text):
|
|
| 55 |
if match:
|
| 56 |
name = match.group(1)
|
| 57 |
quote = match.group(2)
|
| 58 |
-
ingredients = match.group(3).
|
| 59 |
-
instruction = match.group(4).
|
| 60 |
-
notes = match.group(5)
|
| 61 |
return name, quote, ingredients, instruction, notes
|
| 62 |
else:
|
| 63 |
return None
|
|
|
|
| 55 |
if match:
|
| 56 |
name = match.group(1)
|
| 57 |
quote = match.group(2)
|
| 58 |
+
ingredients = match.group(3).replace('\n', '<br>')
|
| 59 |
+
instruction = match.group(4).replace('\n', '<br>')
|
| 60 |
+
notes = match.group(5)
|
| 61 |
return name, quote, ingredients, instruction, notes
|
| 62 |
else:
|
| 63 |
return None
|