JeCabrera commited on
Commit
f0365d1
verified
1 Parent(s): c7b8b78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
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
- # Opci贸n para alternar entre vista renderizada y cruda
317
- view_mode = st.radio("Modo de visualizaci贸n:", ["Renderizado", "Texto crudo"])
318
 
319
- if view_mode == "Renderizado":
320
- # Vista normal renderizada con el wrapper
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)