Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,6 +98,13 @@ apply_styles()
|
|
| 98 |
|
| 99 |
# En la secci贸n donde muestras la historia generada
|
| 100 |
with col2:
|
| 101 |
-
if
|
| 102 |
-
|
| 103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
# En la secci贸n donde muestras la historia generada
|
| 100 |
with col2:
|
| 101 |
+
if generate_button:
|
| 102 |
+
response = get_gemini_response(
|
| 103 |
+
input_prompt, formula_type, length,
|
| 104 |
+
mood, target_audience, cta_type
|
| 105 |
+
)
|
| 106 |
+
stories = response.split("---")
|
| 107 |
+
for i, story in enumerate(stories, 1):
|
| 108 |
+
st.subheader(f"Historia {i}:")
|
| 109 |
+
st.write(story.strip())
|
| 110 |
+
st.divider()
|