fix other recipe list
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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,
|