try to fix buttons
Browse files
app.py
CHANGED
@@ -56,6 +56,19 @@ def craft_story_from_recipe(input_str: str, recipe: str) -> None:
|
|
56 |
raise ValueError("An error occurred while crafting the story.")
|
57 |
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
# UI
|
60 |
st.title("kwest.dev")
|
61 |
st.subheader("Leverage the power of storytelling for any idea. π‘")
|
@@ -78,7 +91,7 @@ with st.expander(label="How to present your idea to get the best story π", ex
|
|
78 |
|
79 |
β
`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".`
|
80 |
|
81 |
-
β
`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.`
|
82 |
|
83 |
β
`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.`
|
84 |
|
@@ -92,7 +105,7 @@ with input_col:
|
|
92 |
with btn_col:
|
93 |
check_input = st.button(label="βΆοΈ", key="check_input", help="Check if the input is valid")
|
94 |
|
95 |
-
if check_input:
|
96 |
input_is_valid = check_if_input_is_valid(input_str)
|
97 |
if input_is_valid is None:
|
98 |
st.error("An error occurred while checking the input. Please try again.")
|
|
|
56 |
raise ValueError("An error occurred while crafting the story.")
|
57 |
|
58 |
|
59 |
+
st.markdown(
|
60 |
+
"""
|
61 |
+
<style>
|
62 |
+
button {
|
63 |
+
height: auto;
|
64 |
+
padding-top: 10px !important;
|
65 |
+
padding-bottom: 10px !important;
|
66 |
+
}
|
67 |
+
</style>
|
68 |
+
""",
|
69 |
+
unsafe_allow_html=True,
|
70 |
+
)
|
71 |
+
|
72 |
# UI
|
73 |
st.title("kwest.dev")
|
74 |
st.subheader("Leverage the power of storytelling for any idea. π‘")
|
|
|
91 |
|
92 |
β
`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".`
|
93 |
|
94 |
+
β
`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.`
|
95 |
|
96 |
β
`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.`
|
97 |
|
|
|
105 |
with btn_col:
|
106 |
check_input = st.button(label="βΆοΈ", key="check_input", help="Check if the input is valid")
|
107 |
|
108 |
+
if check_input and input_str != "":
|
109 |
input_is_valid = check_if_input_is_valid(input_str)
|
110 |
if input_is_valid is None:
|
111 |
st.error("An error occurred while checking the input. Please try again.")
|