Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,7 @@ class Recipe(BaseModel):
|
|
| 33 |
name: str
|
| 34 |
time: str
|
| 35 |
creator: str
|
|
|
|
| 36 |
ingredients: List[str]
|
| 37 |
instructions: str
|
| 38 |
|
|
@@ -106,6 +107,7 @@ def add_recipe(recipe: Recipe):
|
|
| 106 |
"name": recipe.name,
|
| 107 |
"time": recipe.time,
|
| 108 |
"creator": recipe.creator,
|
|
|
|
| 109 |
"ingredients": recipe.ingredients,
|
| 110 |
"instructions": recipe.instructions
|
| 111 |
}, f)
|
|
|
|
| 33 |
name: str
|
| 34 |
time: str
|
| 35 |
creator: str
|
| 36 |
+
description: str
|
| 37 |
ingredients: List[str]
|
| 38 |
instructions: str
|
| 39 |
|
|
|
|
| 107 |
"name": recipe.name,
|
| 108 |
"time": recipe.time,
|
| 109 |
"creator": recipe.creator,
|
| 110 |
+
"description": recipe.description,
|
| 111 |
"ingredients": recipe.ingredients,
|
| 112 |
"instructions": recipe.instructions
|
| 113 |
}, f)
|