chainyo commited on
Commit
bbf9f82
·
1 Parent(s): 6fb52ba

fix other recipe list

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -115,7 +115,12 @@ if check_input:
115
  recipe_choices["second_recipe"],
116
  on_click=lambda: craft_story_from_recipe(input_str, recipe_choices["second_recipe"])
117
  )
118
- for idx, recipe in enumerate(RECIPES - [recipe_choices["recipe"], recipe_choices["second_recipe"]]):
 
 
 
 
 
119
  with other_choices[idx]:
120
  other_recipe = st.button(
121
  recipe,
 
115
  recipe_choices["second_recipe"],
116
  on_click=lambda: craft_story_from_recipe(input_str, recipe_choices["second_recipe"])
117
  )
118
+ _other_choices = [
119
+ recipe
120
+ for recipe in RECIPES
121
+ if recipe not in [recipe_choices["recipe"], recipe_choices["second_recipe"]]
122
+ ]
123
+ for idx, recipe in enumerate(_other_choices):
124
  with other_choices[idx]:
125
  other_recipe = st.button(
126
  recipe,