chainyo commited on
Commit
0d0f707
·
1 Parent(s): 0fdc5a5

fix for loop

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,7 +109,7 @@ if check_input:
109
  for recipe in RECIPES
110
  if recipe not in [recipe_choices["recipe"], recipe_choices["second_recipe"]]
111
  ]
112
- for idx, recipe in enumerate(_other_choices):
113
  with recipe_choices_col[idx]:
114
  if recipe == recipe_choices["recipe"]:
115
  _recipe = f"🥇 {recipe}"
@@ -118,7 +118,7 @@ if check_input:
118
  else:
119
  _recipe = recipe
120
 
121
- other_recipe = st.button(
122
  _recipe,
123
  on_click=craft_story_from_recipe,
124
  kwargs={"input_str": input_str, "recipe": recipe}
 
109
  for recipe in RECIPES
110
  if recipe not in [recipe_choices["recipe"], recipe_choices["second_recipe"]]
111
  ]
112
+ for idx, recipe in enumerate(RECIPES):
113
  with recipe_choices_col[idx]:
114
  if recipe == recipe_choices["recipe"]:
115
  _recipe = f"🥇 {recipe}"
 
118
  else:
119
  _recipe = recipe
120
 
121
+ st.button(
122
  _recipe,
123
  on_click=craft_story_from_recipe,
124
  kwargs={"input_str": input_str, "recipe": recipe}