fix for loop
Browse files
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(
|
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 |
-
|
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}
|