fic btn on_click
Browse files
app.py
CHANGED
|
@@ -109,13 +109,13 @@ if check_input:
|
|
| 109 |
with choice_1:
|
| 110 |
recipe_1 = st.button(
|
| 111 |
recipe_choices["recipe"],
|
| 112 |
-
on_click=craft_story_from_recipe
|
| 113 |
kwargs={"input_str": input_str, "recipe": recipe_choices["recipe"]}
|
| 114 |
)
|
| 115 |
with choice_2:
|
| 116 |
recipe_2 = st.button(
|
| 117 |
recipe_choices["second_recipe"],
|
| 118 |
-
on_click=craft_story_from_recipe
|
| 119 |
kwargs={"input_str": input_str, "recipe": recipe_choices["second_recipe"]}
|
| 120 |
)
|
| 121 |
_other_choices = [
|
|
@@ -127,7 +127,7 @@ if check_input:
|
|
| 127 |
with other_choices[idx]:
|
| 128 |
other_recipe = st.button(
|
| 129 |
recipe,
|
| 130 |
-
on_click=craft_story_from_recipe
|
| 131 |
kwargs={"input_str": input_str, "recipe": recipe}
|
| 132 |
)
|
| 133 |
|
|
|
|
| 109 |
with choice_1:
|
| 110 |
recipe_1 = st.button(
|
| 111 |
recipe_choices["recipe"],
|
| 112 |
+
on_click=craft_story_from_recipe,
|
| 113 |
kwargs={"input_str": input_str, "recipe": recipe_choices["recipe"]}
|
| 114 |
)
|
| 115 |
with choice_2:
|
| 116 |
recipe_2 = st.button(
|
| 117 |
recipe_choices["second_recipe"],
|
| 118 |
+
on_click=craft_story_from_recipe,
|
| 119 |
kwargs={"input_str": input_str, "recipe": recipe_choices["second_recipe"]}
|
| 120 |
)
|
| 121 |
_other_choices = [
|
|
|
|
| 127 |
with other_choices[idx]:
|
| 128 |
other_recipe = st.button(
|
| 129 |
recipe,
|
| 130 |
+
on_click=craft_story_from_recipe,
|
| 131 |
kwargs={"input_str": input_str, "recipe": recipe}
|
| 132 |
)
|
| 133 |
|