userIdc2024 commited on
Commit
4d09b1f
·
verified ·
1 Parent(s): 885d6fe

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -4
src/streamlit_app.py CHANGED
@@ -212,7 +212,7 @@ def render_analyzer_results(analysis: Dict[str, Any]) -> None:
212
  with c1:
213
  with st.expander("Brief", expanded=True):
214
  st.write(analysis.get("brief", "N/A"))
215
- with st.expander("Caption Details", expanded=False):
216
  st.write(analysis.get("caption_details", "N/A"))
217
  with c2:
218
  hook = analysis.get("hook", {}) or {}
@@ -232,15 +232,15 @@ def render_analyzer_results(analysis: Dict[str, Any]) -> None:
232
  st.markdown("### Snapshot")
233
  with st.container():
234
  st.caption("Top Drivers")
235
- st.markdown(f'<div class="section-card">{va.get("effectiveness_factors","N/A")}</div>', unsafe_allow_html=True)
236
  st.markdown("")
237
  with st.container():
238
  st.caption("Psychological Triggers")
239
- st.markdown(f'<div class="section-card">{va.get("psychological_triggers","N/A")}</div>', unsafe_allow_html=True)
240
  st.markdown("")
241
  with st.container():
242
  st.caption("Target Audience")
243
- st.markdown(f'<div class="section-card">{va.get("target_audience","N/A")}</div>', unsafe_allow_html=True)
244
 
245
  st.divider()
246
 
 
212
  with c1:
213
  with st.expander("Brief", expanded=True):
214
  st.write(analysis.get("brief", "N/A"))
215
+ with st.expander("Caption Details", expanded=True):
216
  st.write(analysis.get("caption_details", "N/A"))
217
  with c2:
218
  hook = analysis.get("hook", {}) or {}
 
232
  st.markdown("### Snapshot")
233
  with st.container():
234
  st.caption("Top Drivers")
235
+ st.markdown(f'{va.get("effectiveness_factors","N/A")}', unsafe_allow_html=True)
236
  st.markdown("")
237
  with st.container():
238
  st.caption("Psychological Triggers")
239
+ st.markdown(f'{va.get("psychological_triggers","N/A")}', unsafe_allow_html=True)
240
  st.markdown("")
241
  with st.container():
242
  st.caption("Target Audience")
243
+ st.markdown(f'{va.get("target_audience","N/A")}', unsafe_allow_html=True)
244
 
245
  st.divider()
246