chainyo commited on
Commit
c3cc390
·
1 Parent(s): c70a3d2

fic btn on_click

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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