remove recipe choice for now
Browse files
app.py
CHANGED
@@ -66,34 +66,35 @@ button {
|
|
66 |
unsafe_allow_html=True,
|
67 |
)
|
68 |
|
69 |
-
|
70 |
-
|
|
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
|
79 |
-
|
80 |
-
The different recipes available are: `sell`, `motivate`, `convince`, `connect`, `explain`, `lead`, `impress`
|
81 |
|
82 |
-
|
83 |
|
84 |
-
|
85 |
|
86 |
-
|
87 |
|
88 |
-
|
89 |
|
90 |
-
|
|
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
)
|
97 |
|
98 |
input_col, btn_col = st.columns([3, 1], vertical_alignment="bottom")
|
99 |
with input_col:
|
@@ -114,25 +115,27 @@ if check_input and input_str != "":
|
|
114 |
)
|
115 |
|
116 |
if input_is_valid["objective"] == "yes" and input_is_valid["context"] == "yes" and input_is_valid["audience"] == "yes":
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
136 |
|
137 |
if "story" in st.session_state:
|
138 |
st.markdown(st.session_state.story)
|
|
|
66 |
unsafe_allow_html=True,
|
67 |
)
|
68 |
|
69 |
+
_recipe_choice_explanations = """
|
70 |
+
Once you have shared these details, you will have the opportunity to choose a recipe to craft your story.
|
71 |
+
The different recipes available are: `sell`, `motivate`, `convince`, `connect`, `explain`, `lead`, `impress`
|
72 |
|
73 |
+
You can choose the recipe that best fits your idea, but to help you decide we will mark the 1st and 2nd best recipes with π₯ and π₯ respectively.
|
74 |
+
"""
|
75 |
+
_explanations = f"""
|
76 |
+
- π― Explain the **main objective** of your idea. What is the **main goal** you are trying to achieve?
|
77 |
+
- π Give as much **context** as possible. For example, what is the problem you are trying to solve? If you have a good name for your idea, share it.
|
78 |
+
- π€ What is the **audience** for your idea? Who are the people that should be interested in it?
|
79 |
|
80 |
+
---
|
|
|
81 |
|
82 |
+
__Examples of good and bad inputs:__
|
83 |
|
84 |
+
β
`I need a pitch for a new app that helps people find the best restaurants in town based on their previous feedback. I will present it to angel investors. The name of the app is "Foodie".`
|
85 |
|
86 |
+
β
`I want to present to my friends the idea of a collaborative group of people that help each other to achieve their goals. I want to motivate them to join the group to allow people to share knowledge together and grow skills using peer-to-peer learning.`
|
87 |
|
88 |
+
β
`I'm going to present a new way to manage projects to my team. I want to convince them that this new method will help us be more efficient, reduce stress, and deliver better results.`
|
89 |
|
90 |
+
β `I need a pitch for a new app. It's cool.`
|
91 |
+
"""
|
92 |
|
93 |
+
st.title("kwest.dev")
|
94 |
+
st.subheader("Leverage the power of storytelling for any idea. π‘")
|
95 |
+
|
96 |
+
with st.expander(label="How to present your idea to get the best story π", expanded=True):
|
97 |
+
st.markdown(_explanations)
|
98 |
|
99 |
input_col, btn_col = st.columns([3, 1], vertical_alignment="bottom")
|
100 |
with input_col:
|
|
|
115 |
)
|
116 |
|
117 |
if input_is_valid["objective"] == "yes" and input_is_valid["context"] == "yes" and input_is_valid["audience"] == "yes":
|
118 |
+
# NOTE: Only sell recipe is available for now.
|
119 |
+
craft_story_from_recipe(input_str, "sell")
|
120 |
+
# recipe_choices = get_recipe_choices(input_str)
|
121 |
+
# st.write("Choose the recipe you want to use for your story.")
|
122 |
+
|
123 |
+
# recipe_choices_col = st.columns(7, vertical_alignment="bottom")
|
124 |
+
# for idx, recipe in enumerate(RECIPES):
|
125 |
+
# with recipe_choices_col[idx]:
|
126 |
+
# if recipe == recipe_choices["recipe"]:
|
127 |
+
# _recipe = f"π₯{recipe}"
|
128 |
+
# elif recipe == recipe_choices["second_recipe"]:
|
129 |
+
# _recipe = f"π₯{recipe}"
|
130 |
+
# else:
|
131 |
+
# _recipe = recipe
|
132 |
+
|
133 |
+
# st.button(
|
134 |
+
# _recipe,
|
135 |
+
# on_click=craft_story_from_recipe,
|
136 |
+
# kwargs={"input_str": input_str, "recipe": recipe},
|
137 |
+
# use_container_width=True,
|
138 |
+
# )
|
139 |
|
140 |
if "story" in st.session_state:
|
141 |
st.markdown(st.session_state.story)
|