IAMTFRMZA commited on
Commit
2466a8c
·
verified ·
1 Parent(s): fe6caf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,7 +69,7 @@ with st.sidebar:
69
  st.session_state.pending_prompt = None
70
  st.rerun()
71
 
72
- show_image = st.toggle("📸 Show Slide Images", value=True)
73
  keyword = st.text_input("Keyword Search", placeholder="e.g. mitosis, carcinoma")
74
  if st.button("🔎 Search") and keyword:
75
  st.session_state.pending_prompt = f"Find clauses or references related to: {keyword}"
@@ -153,7 +153,7 @@ with chat_col:
153
  # ------------------ Image Preview (No Re-Encoding) ------------------
154
  with image_col:
155
  if show_image and st.session_state.image_urls:
156
- st.markdown("### 🖼️ Slide Previews")
157
  for raw_url in st.session_state.image_urls:
158
  try:
159
  # ✅ Use assistant's already-encoded URL directly
 
69
  st.session_state.pending_prompt = None
70
  st.rerun()
71
 
72
+ show_image = st.toggle("📸 Show Images", value=True)
73
  keyword = st.text_input("Keyword Search", placeholder="e.g. mitosis, carcinoma")
74
  if st.button("🔎 Search") and keyword:
75
  st.session_state.pending_prompt = f"Find clauses or references related to: {keyword}"
 
153
  # ------------------ Image Preview (No Re-Encoding) ------------------
154
  with image_col:
155
  if show_image and st.session_state.image_urls:
156
+ st.markdown("### 🖼️ Image(s)")
157
  for raw_url in st.session_state.image_urls:
158
  try:
159
  # ✅ Use assistant's already-encoded URL directly