Spaces:
Running
Running
Update app.py
Browse files
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
|
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("### 🖼️
|
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
|