Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import google.generativeai as genai
|
|
3 |
import os
|
4 |
import time
|
5 |
from dotenv import load_dotenv
|
6 |
-
from styles import get_custom_css
|
7 |
from formulas import offer_formulas
|
8 |
import PyPDF2
|
9 |
import docx
|
@@ -58,7 +58,7 @@ with col1:
|
|
58 |
|
59 |
# Accordion for additional settings
|
60 |
with st.expander('鈿欙笍 Configuraci贸n Avanzada'):
|
61 |
-
target_audience = st.text_area('馃懃 P煤blico Objetivo
|
62 |
help='Describe tu cliente o p煤blico ideal')
|
63 |
|
64 |
# Add file/image uploader here
|
@@ -261,8 +261,12 @@ with col2:
|
|
261 |
|
262 |
# Display results if we have an offer result
|
263 |
if st.session_state.generated:
|
264 |
-
|
265 |
-
st.markdown(
|
|
|
|
|
|
|
|
|
266 |
|
267 |
col_download, col_empty = st.columns([8, 2])
|
268 |
with col_download:
|
|
|
3 |
import os
|
4 |
import time
|
5 |
from dotenv import load_dotenv
|
6 |
+
from styles import get_custom_css, get_response_html_wrapper
|
7 |
from formulas import offer_formulas
|
8 |
import PyPDF2
|
9 |
import docx
|
|
|
58 |
|
59 |
# Accordion for additional settings
|
60 |
with st.expander('鈿欙笍 Configuraci贸n Avanzada'):
|
61 |
+
target_audience = st.text_area('馃懃 P煤blico Objetivo', height=70,
|
62 |
help='Describe tu cliente o p煤blico ideal')
|
63 |
|
64 |
# Add file/image uploader here
|
|
|
261 |
|
262 |
# Display results if we have an offer result
|
263 |
if st.session_state.generated:
|
264 |
+
# Replace these two lines:
|
265 |
+
# st.markdown('### Oferta Generada')
|
266 |
+
# st.markdown(st.session_state.offer_result)
|
267 |
+
|
268 |
+
# With this line that uses the wrapper:
|
269 |
+
st.markdown(get_response_html_wrapper(st.session_state.offer_result), unsafe_allow_html=True)
|
270 |
|
271 |
col_download, col_empty = st.columns([8, 2])
|
272 |
with col_download:
|