Spaces:
Sleeping
Sleeping
Commit
·
d1a27f3
1
Parent(s):
651890a
Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ st.button(label='Submit', on_click=generate_recipe, kwargs=dict(user_inputs=user
|
|
178 |
|
179 |
if st.session_state.gpt_response is not None:
|
180 |
st.divider()
|
181 |
-
|
182 |
recipe_md = ''
|
183 |
recipe_md += f'#{recipe["name"]} \n\n'
|
184 |
recipe_md += f'{recipe["description"]} \n\n'
|
|
|
178 |
|
179 |
if st.session_state.gpt_response is not None:
|
180 |
st.divider()
|
181 |
+
recipe = json.loads(st.session_state.gpt_response.choices[0].message.function_call.arguments)
|
182 |
recipe_md = ''
|
183 |
recipe_md += f'#{recipe["name"]} \n\n'
|
184 |
recipe_md += f'{recipe["description"]} \n\n'
|