chainyo commited on
Commit
266fe4b
·
1 Parent(s): 8d5d0f2

try to fix buttons

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -108,7 +108,7 @@ if check_input:
108
  recipe_choices = get_recipe_choices(input_str)
109
  st.write("Choose the recipe you want to use for your story.")
110
 
111
- recipe_choices_col = st.columns(7)
112
  for idx, recipe in enumerate(RECIPES):
113
  with recipe_choices_col[idx]:
114
  if recipe == recipe_choices["recipe"]:
@@ -121,7 +121,8 @@ if check_input:
121
  st.button(
122
  _recipe,
123
  on_click=craft_story_from_recipe,
124
- kwargs={"input_str": input_str, "recipe": recipe}
 
125
  )
126
 
127
  if "story" in st.session_state:
 
108
  recipe_choices = get_recipe_choices(input_str)
109
  st.write("Choose the recipe you want to use for your story.")
110
 
111
+ recipe_choices_col = st.columns(7, vertical_alignment="bottom")
112
  for idx, recipe in enumerate(RECIPES):
113
  with recipe_choices_col[idx]:
114
  if recipe == recipe_choices["recipe"]:
 
121
  st.button(
122
  _recipe,
123
  on_click=craft_story_from_recipe,
124
+ kwargs={"input_str": input_str, "recipe": recipe},
125
+ use_container_width=True,
126
  )
127
 
128
  if "story" in st.session_state: