Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,8 @@ class Recipe(BaseModel):
|
|
33 |
name: str
|
34 |
time: str
|
35 |
creator: str
|
|
|
|
|
36 |
description: str
|
37 |
ingredients: List[str]
|
38 |
instructions: str
|
@@ -107,6 +109,8 @@ def add_recipe(recipe: Recipe):
|
|
107 |
"name": recipe.name,
|
108 |
"time": recipe.time,
|
109 |
"creator": recipe.creator,
|
|
|
|
|
110 |
"description": recipe.description,
|
111 |
"ingredients": recipe.ingredients,
|
112 |
"instructions": recipe.instructions
|
|
|
33 |
name: str
|
34 |
time: str
|
35 |
creator: str
|
36 |
+
category: str
|
37 |
+
diff: str
|
38 |
description: str
|
39 |
ingredients: List[str]
|
40 |
instructions: str
|
|
|
109 |
"name": recipe.name,
|
110 |
"time": recipe.time,
|
111 |
"creator": recipe.creator,
|
112 |
+
"category": recipe.category,
|
113 |
+
"diff": recipe.diff,
|
114 |
"description": recipe.description,
|
115 |
"ingredients": recipe.ingredients,
|
116 |
"instructions": recipe.instructions
|