OmPrakashSingh1704 commited on
Commit
a6e387d
1 Parent(s): 23b8999

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import random
2
  import streamlit as st
3
- import re, secrets, os, json
4
  import pandas as pd
5
  from huggingface_hub import login, InferenceClient
6
  import pickle
@@ -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 = json.loads(st.session_state.recipe)
320
  show_recipe(recipe)
321
  recipe['timestamp'] = str(datetime.datetime.now())
322
  if st.session_state.recipe_saved == True:
 
1
  import random
2
  import streamlit as st
3
+ import re, secrets, os, ast
4
  import pandas as pd
5
  from huggingface_hub import login, InferenceClient
6
  import pickle
 
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
  show_recipe(recipe)
321
  recipe['timestamp'] = str(datetime.datetime.now())
322
  if st.session_state.recipe_saved == True: