Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -313,17 +313,10 @@ with col2:
|
|
| 313 |
|
| 314 |
# Display results if we have an offer result
|
| 315 |
if st.session_state.generated:
|
| 316 |
-
#
|
| 317 |
-
view_mode = st.radio("Modo de visualizaci贸n:", ["Renderizado", "Texto crudo"])
|
| 318 |
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
st.markdown(get_response_html_wrapper(st.session_state.offer_result), unsafe_allow_html=True)
|
| 322 |
-
else:
|
| 323 |
-
# Vista de texto crudo - muestra exactamente lo que devuelve el modelo
|
| 324 |
-
st.text_area("Respuesta cruda:", st.session_state.offer_result, height=400)
|
| 325 |
-
# Opcionalmente, muestra la representaci贸n de bytes para detectar caracteres invisibles
|
| 326 |
-
st.code(repr(st.session_state.offer_result))
|
| 327 |
|
| 328 |
# Add a small space
|
| 329 |
st.markdown('<div style="height: 15px;"></div>', unsafe_allow_html=True)
|
|
|
|
| 313 |
|
| 314 |
# Display results if we have an offer result
|
| 315 |
if st.session_state.generated:
|
| 316 |
+
# Remove the visualization mode option
|
|
|
|
| 317 |
|
| 318 |
+
# Display the formatted result directly
|
| 319 |
+
st.markdown(get_response_html_wrapper(st.session_state.offer_result), unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
|
| 321 |
# Add a small space
|
| 322 |
st.markdown('<div style="height: 15px;"></div>', unsafe_allow_html=True)
|