Spaces:
Running
Running
adrianpierce
commited on
Commit
•
8f7f61a
1
Parent(s):
7ca3025
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def generate_recipe(user_inputs):
|
|
104 |
},
|
105 |
"description": {
|
106 |
"type": "string",
|
107 |
-
"description": "a brief one
|
108 |
},
|
109 |
"ingredients": {
|
110 |
"type": "array",
|
@@ -179,7 +179,7 @@ if st.session_state.gpt_response is not None:
|
|
179 |
st.subheader("Instructions:")
|
180 |
try:
|
181 |
md_instructions = ''
|
182 |
-
for instruction in
|
183 |
md_instructions += f"{instruction['step_number']}. {instruction['instruction']} \n"
|
184 |
st.markdown(md_instructions)
|
185 |
except:
|
|
|
104 |
},
|
105 |
"description": {
|
106 |
"type": "string",
|
107 |
+
"description": "a brief one-sentence description of the provided recipe"
|
108 |
},
|
109 |
"ingredients": {
|
110 |
"type": "array",
|
|
|
179 |
st.subheader("Instructions:")
|
180 |
try:
|
181 |
md_instructions = ''
|
182 |
+
for instruction in loaded_recipe['instructions']:
|
183 |
md_instructions += f"{instruction['step_number']}. {instruction['instruction']} \n"
|
184 |
st.markdown(md_instructions)
|
185 |
except:
|