adrianpierce commited on
Commit
26d9a53
1 Parent(s): 20e5e7d

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +2 -0
Home.py CHANGED
@@ -5,6 +5,7 @@ import re
5
  import json
6
  from openai import OpenAI
7
  import secrets
 
8
 
9
  client = OpenAI(
10
  api_key = st.secrets["open_ai_key"]
@@ -231,6 +232,7 @@ if st.session_state.gpt_response is not None:
231
  for instruction in recipe['instructions']:
232
  recipe_md += f"{instruction['step_number']}. {instruction['instruction']} \n"
233
  recipe['md'] = recipe_md
 
234
  st.markdown(recipe_md)
235
  st.write("")
236
  if st.session_state.recipe_saved == True:
 
5
  import json
6
  from openai import OpenAI
7
  import secrets
8
+ from datetime import datetime
9
 
10
  client = OpenAI(
11
  api_key = st.secrets["open_ai_key"]
 
232
  for instruction in recipe['instructions']:
233
  recipe_md += f"{instruction['step_number']}. {instruction['instruction']} \n"
234
  recipe['md'] = recipe_md
235
+ recipe['timestamp'] = datetime.now()
236
  st.markdown(recipe_md)
237
  st.write("")
238
  if st.session_state.recipe_saved == True: