Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,6 +125,109 @@ def generate_ctas(number_of_ctas, target_audience, product, call_to_action, temp
|
|
| 125 |
# Configurar la interfaz de usuario con Streamlit
|
| 126 |
st.set_page_config(page_title="QuickPrompt", layout="wide")
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
# Centrar el título y el subtítulo
|
| 129 |
st.markdown("<h1 style='text-align: center;'>Quick Prompt</h1>", unsafe_allow_html=True)
|
| 130 |
st.markdown("<h4 style='text-align: center;'>Transforma tu mensaje en llamados de acción que inspiren a tu audiencia a tomar decisiones al instante.</h4>", unsafe_allow_html=True)
|
|
|
|
| 125 |
# Configurar la interfaz de usuario con Streamlit
|
| 126 |
st.set_page_config(page_title="QuickPrompt", layout="wide")
|
| 127 |
|
| 128 |
+
import streamlit as st
|
| 129 |
+
|
| 130 |
+
# Título del Sidebar
|
| 131 |
+
st.sidebar.title("Quick Prompt User Manual")
|
| 132 |
+
|
| 133 |
+
# Introducción del manual
|
| 134 |
+
st.sidebar.subheader("Welcome to Quick Prompt")
|
| 135 |
+
st.sidebar.write("""
|
| 136 |
+
In a world where competition for attention is fierce, getting your audience not only to listen but to act is a daily challenge.
|
| 137 |
+
Even with an excellent product, service, or resource, it can be frustrating to watch your audience's interest fade without turning into concrete actions.
|
| 138 |
+
This is where calls-to-action (CTAs) come into play.
|
| 139 |
+
CTAs are much more than just buttons or persuasive phrases: they are the bridge that connects your audience with what you offer.
|
| 140 |
+
""")
|
| 141 |
+
|
| 142 |
+
# Cómo Utilizar Quick Prompt
|
| 143 |
+
st.sidebar.subheader("How to Use Quick Prompt")
|
| 144 |
+
st.sidebar.write("""
|
| 145 |
+
Quick Prompt is an intuitive, easy-to-use tool that helps you create attractive and effective CTAs.
|
| 146 |
+
Here is how you can feed the necessary variables to generate CTAs that inspire your audience to act:
|
| 147 |
+
""")
|
| 148 |
+
|
| 149 |
+
# Sección 1: Definir tu Público Objetivo
|
| 150 |
+
st.sidebar.subheader("1. Define Your Target Audience")
|
| 151 |
+
st.sidebar.write("""
|
| 152 |
+
Understand and connect with your audience by answering these key questions:
|
| 153 |
+
- Who is your audience?
|
| 154 |
+
- What are their interests and needs?
|
| 155 |
+
- What problems can they solve with your product?
|
| 156 |
+
Examples:
|
| 157 |
+
- University students looking for tools to improve their productivity.
|
| 158 |
+
- Entrepreneurs wanting to learn marketing skills to grow their businesses.
|
| 159 |
+
- Professionals looking to improve time management and achieve their career goals.
|
| 160 |
+
""")
|
| 161 |
+
|
| 162 |
+
# Sección 2: Especificar el Producto
|
| 163 |
+
st.sidebar.subheader("2. Specify the Product")
|
| 164 |
+
st.sidebar.write("""
|
| 165 |
+
Here, define the service or resource you're promoting. The CTA should be clear and directly related to the product.
|
| 166 |
+
Examples:
|
| 167 |
+
- "Free guide on efficient study techniques."
|
| 168 |
+
- "Online digital marketing course for entrepreneurs."
|
| 169 |
+
- "Exclusive webinar on time management for team leaders."
|
| 170 |
+
""")
|
| 171 |
+
|
| 172 |
+
# Sección 3: Determinar la Acción Deseada
|
| 173 |
+
st.sidebar.subheader("3. Determine the Desired Action")
|
| 174 |
+
st.sidebar.write("""
|
| 175 |
+
Define the specific action you want your audience to take. This can vary from a download to a registration or subscription.
|
| 176 |
+
Examples:
|
| 177 |
+
- Download a free PDF with useful resources.
|
| 178 |
+
- Sign up for an online course on digital skills.
|
| 179 |
+
- Register for an exclusive event or webinar.
|
| 180 |
+
""")
|
| 181 |
+
|
| 182 |
+
# Sección 4: Seleccionar el Número de CTAs
|
| 183 |
+
st.sidebar.subheader("4. Select the Number of CTAs")
|
| 184 |
+
st.sidebar.write("""
|
| 185 |
+
Decide how many CTAs you want to create in one session. This may depend on the number of offers or products you are promoting.
|
| 186 |
+
Examples:
|
| 187 |
+
- Generate 1 direct CTA for a single product.
|
| 188 |
+
- Create 3 varied CTAs for a landing page with multiple resources.
|
| 189 |
+
- Design 5 personalized CTAs for different audience types.
|
| 190 |
+
""")
|
| 191 |
+
|
| 192 |
+
# Sección 5: Ajustar la Creatividad
|
| 193 |
+
st.sidebar.subheader("5. Adjust the Creativity")
|
| 194 |
+
st.sidebar.write("""
|
| 195 |
+
Quick Prompt includes a slider that allows you to adjust the creativity of your CTAs. Here are creativity ranges according to values from 0 to 1, with three examples in each range:
|
| 196 |
+
""")
|
| 197 |
+
|
| 198 |
+
# Rango de Creatividad Baja
|
| 199 |
+
st.sidebar.write("**Low Creativity (0.0 - 0.3)**")
|
| 200 |
+
st.sidebar.write("""
|
| 201 |
+
This range is direct and simple. The CTAs are clear, concise, and traditional.
|
| 202 |
+
Examples:
|
| 203 |
+
- "Download the free productivity guide."
|
| 204 |
+
- "Sign up for the course today."
|
| 205 |
+
- "Register for the webinar now."
|
| 206 |
+
""")
|
| 207 |
+
|
| 208 |
+
# Rango de Creatividad Media
|
| 209 |
+
st.sidebar.write("**Medium Creativity (0.4 - 0.7)**")
|
| 210 |
+
st.sidebar.write("""
|
| 211 |
+
In this range, CTAs become more persuasive, with a friendly tone that engages the reader, but without being too innovative.
|
| 212 |
+
Examples:
|
| 213 |
+
- "Improve your day with our free guide. Download it now!"
|
| 214 |
+
- "Join our course and start growing today."
|
| 215 |
+
- "Register for the webinar and discover new opportunities."
|
| 216 |
+
""")
|
| 217 |
+
|
| 218 |
+
# Rango de Creatividad Alta
|
| 219 |
+
st.sidebar.write("**High Creativity (0.8 - 1.0)**")
|
| 220 |
+
st.sidebar.write("""
|
| 221 |
+
In this range, the CTAs are more creative and dynamic, generating excitement or urgency. The language is more appealing and visual.
|
| 222 |
+
Examples:
|
| 223 |
+
- "Conquer your productivity with our essential guide! Download it now."
|
| 224 |
+
- "Take a leap in your career. Join the course and transform your future today."
|
| 225 |
+
- "Don't miss this unique opportunity. Register and secure your spot in the webinar."
|
| 226 |
+
""")
|
| 227 |
+
|
| 228 |
+
# Footer del manual
|
| 229 |
+
st.sidebar.write("With Quick Prompt, transforming interest into action has never been easier.")
|
| 230 |
+
|
| 231 |
# Centrar el título y el subtítulo
|
| 232 |
st.markdown("<h1 style='text-align: center;'>Quick Prompt</h1>", unsafe_allow_html=True)
|
| 233 |
st.markdown("<h4 style='text-align: center;'>Transforma tu mensaje en llamados de acción que inspiren a tu audiencia a tomar decisiones al instante.</h4>", unsafe_allow_html=True)
|