Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,10 @@ def get_gemini_response(input_prompt, formula_type, length, mood, target_audienc
|
|
56 |
return response.parts[0].text if response and response.parts else "Error al generar contenido."
|
57 |
|
58 |
# Configurar la aplicaci贸n Streamlit
|
|
|
59 |
st.set_page_config(page_title="Story Generator", page_icon=":pencil:", layout="wide")
|
60 |
-
|
|
|
61 |
# Leer y mostrar el manual en el sidebar
|
62 |
with open("manual.md", "r", encoding="utf-8") as file:
|
63 |
manual_content = file.read()
|
@@ -67,7 +69,7 @@ st.sidebar.markdown(manual_content)
|
|
67 |
st.markdown("<h1>Story Genius Maker</h1>", unsafe_allow_html=True)
|
68 |
st.markdown("<h3>Teje historias inolvidables en segundos, guiado por la magia de la inteligencia artificial que da vida a tus ideas en relatos cautivadores.</h3>", unsafe_allow_html=True)
|
69 |
# Crear dos columnas
|
70 |
-
col1, col2 = st.columns([
|
71 |
|
72 |
# Columna izquierda para inputs
|
73 |
# Remove the benefit input field
|
@@ -75,7 +77,7 @@ with col1:
|
|
75 |
# Entrada de texto principal
|
76 |
input_prompt = st.text_area("Escribe de qu茅 quieres que trate la historia:", placeholder="Escribe aqu铆 tu idea...")
|
77 |
target_audience = st.text_input("P煤blico Objetivo:", placeholder="Ejemplo: Profesionales de 25-35 a帽os...")
|
78 |
-
cta_type = st.text_input("Llamado a la acci贸n:", placeholder="Ejemplo:
|
79 |
|
80 |
with st.expander("Opciones avanzadas"):
|
81 |
formula_type = st.selectbox(
|
|
|
56 |
return response.parts[0].text if response and response.parts else "Error al generar contenido."
|
57 |
|
58 |
# Configurar la aplicaci贸n Streamlit
|
59 |
+
# Move this line to the top, right after set_page_config
|
60 |
st.set_page_config(page_title="Story Generator", page_icon=":pencil:", layout="wide")
|
61 |
+
st.markdown(apply_styles(), unsafe_allow_html=True) # Add this line here
|
62 |
+
|
63 |
# Leer y mostrar el manual en el sidebar
|
64 |
with open("manual.md", "r", encoding="utf-8") as file:
|
65 |
manual_content = file.read()
|
|
|
69 |
st.markdown("<h1>Story Genius Maker</h1>", unsafe_allow_html=True)
|
70 |
st.markdown("<h3>Teje historias inolvidables en segundos, guiado por la magia de la inteligencia artificial que da vida a tus ideas en relatos cautivadores.</h3>", unsafe_allow_html=True)
|
71 |
# Crear dos columnas
|
72 |
+
col1, col2 = st.columns([1, 1])
|
73 |
|
74 |
# Columna izquierda para inputs
|
75 |
# Remove the benefit input field
|
|
|
77 |
# Entrada de texto principal
|
78 |
input_prompt = st.text_area("Escribe de qu茅 quieres que trate la historia:", placeholder="Escribe aqu铆 tu idea...")
|
79 |
target_audience = st.text_input("P煤blico Objetivo:", placeholder="Ejemplo: Profesionales de 25-35 a帽os...")
|
80 |
+
cta_type = st.text_input("Llamado a la acci贸n:", placeholder="Ejemplo: Curso de marketing digital...")
|
81 |
|
82 |
with st.expander("Opciones avanzadas"):
|
83 |
formula_type = st.selectbox(
|