OmPrakashSingh1704 commited on
Commit
325a3cb
·
verified ·
1 Parent(s): 1dd930a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -316,7 +316,7 @@ def cooking():
316
  if st.session_state.recipe is not None:
317
  st.divider()
318
  print(st.session_state.recipe)
319
- recipe = ast.literal_eval(st.session_state.recipe)
320
  if not st.session_state.recipe_saved:
321
  show_recipe(recipe)
322
  recipe['timestamp'] = str(datetime.datetime.now())
 
316
  if st.session_state.recipe is not None:
317
  st.divider()
318
  print(st.session_state.recipe)
319
+ recipe = json.loads(st.session_state.recipe)
320
  if not st.session_state.recipe_saved:
321
  show_recipe(recipe)
322
  recipe['timestamp'] = str(datetime.datetime.now())