adrianpierce commited on
Commit
2366d7f
1 Parent(s): 22a2cf1

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +5 -1
Home.py CHANGED
@@ -17,6 +17,9 @@ if 'gpt_response' not in st.session_state:
17
  if 'recipe_saved' not in st.session_state:
18
  st.session_state.recipe_saved = None
19
 
 
 
 
20
  # functions
21
  def create_detailed_prompt(user_direction, exclusions, serving_size, difficulty):
22
  if difficulty == "Quick & Easy":
@@ -127,8 +130,9 @@ def save_recipe():
127
 
128
  # app
129
  st.title("Let's get cooking")
130
- user_direction = st.text_area(
131
  "What do you want to cook? Describe anything - a dish, cuisine, event, or vibe.",
 
132
  placeholder="quick snack, asian style bowl with either noodles or rice, something italian",
133
  )
134
 
 
17
  if 'recipe_saved' not in st.session_state:
18
  st.session_state.recipe_saved = None
19
 
20
+ if 'user_direction' not in st.session_state:
21
+ st.session_state.user_direction = None
22
+
23
  # functions
24
  def create_detailed_prompt(user_direction, exclusions, serving_size, difficulty):
25
  if difficulty == "Quick & Easy":
 
130
 
131
  # app
132
  st.title("Let's get cooking")
133
+ st.session_state.user_direction = st.text_area(
134
  "What do you want to cook? Describe anything - a dish, cuisine, event, or vibe.",
135
+ value = st.session_state.user_direction,
136
  placeholder="quick snack, asian style bowl with either noodles or rice, something italian",
137
  )
138