Spaces:
Running
Running
adrianpierce
commited on
Commit
•
296eb14
1
Parent(s):
8f7f61a
Update app.py
Browse files
app.py
CHANGED
@@ -114,10 +114,6 @@ def generate_recipe(user_inputs):
|
|
114 |
"name": {
|
115 |
"type": "string",
|
116 |
"description": "Name of the ingredient"
|
117 |
-
},
|
118 |
-
"quantity": {
|
119 |
-
"type": "string",
|
120 |
-
"description": "Amount of the ingredient"
|
121 |
}
|
122 |
}
|
123 |
}
|
@@ -172,7 +168,7 @@ if st.session_state.gpt_response is not None:
|
|
172 |
try:
|
173 |
md_ingredients = ''
|
174 |
for ingredient in loaded_recipe['ingredients']:
|
175 |
-
md_ingredients += f"- {ingredient['
|
176 |
st.markdown(md_ingredients)
|
177 |
except:
|
178 |
st.write(loaded_recipe['ingredients'])
|
|
|
114 |
"name": {
|
115 |
"type": "string",
|
116 |
"description": "Name of the ingredient"
|
|
|
|
|
|
|
|
|
117 |
}
|
118 |
}
|
119 |
}
|
|
|
168 |
try:
|
169 |
md_ingredients = ''
|
170 |
for ingredient in loaded_recipe['ingredients']:
|
171 |
+
md_ingredients += f"- {ingredient['name']} \n"
|
172 |
st.markdown(md_ingredients)
|
173 |
except:
|
174 |
st.write(loaded_recipe['ingredients'])
|