Anonymous-AC commited on
Commit
f1987c7
Β·
verified Β·
1 Parent(s): 38c2252

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -128,6 +128,7 @@ def apply_transform(image, size_mode=512):
128
  # Streamlit UI with Colorful Title and Emojis
129
  # st.markdown("<div style='text-align: center;'><span style='font-size: 3rem;'>🩺</span></div>", unsafe_allow_html=True)
130
  st.markdown("<h1 class='title'>Knowledge to Sight: Reasoning over Visual Attributes via Knowledge Decomposition for Abnormality Grounding</h1>", unsafe_allow_html=True)
 
131
  # st.markdown("<div style='text-align: center;'><span style='font-size: 3rem;'>πŸš€</span></div>", unsafe_allow_html=True)
132
  st.markdown(
133
  "<p style='text-align: center; font-size: 18px;'>Welcome to a simple demo of our work! πŸŽ‰ Choose an example or upload your own image to get started! πŸ‘‡</p>",
@@ -300,7 +301,10 @@ with col2:
300
  - The model’s responses may contain **<span style='color:#dc3545; font-weight:bold;'>πŸ€– hallucinations or incorrect information</span>**.
301
  - Always consult a **<span style='color:#dc3545; font-weight:bold;'>πŸ‘¨β€βš•οΈ medical professional</span>** for accurate diagnosis and advice.
302
  """, unsafe_allow_html=True)
303
-
 
 
 
304
  # Run inference after upload
305
  if st.button("Run Inference πŸƒβ€β™‚οΈ"):
306
  if image is None:
 
128
  # Streamlit UI with Colorful Title and Emojis
129
  # st.markdown("<div style='text-align: center;'><span style='font-size: 3rem;'>🩺</span></div>", unsafe_allow_html=True)
130
  st.markdown("<h1 class='title'>Knowledge to Sight: Reasoning over Visual Attributes via Knowledge Decomposition for Abnormality Grounding</h1>", unsafe_allow_html=True)
131
+
132
  # st.markdown("<div style='text-align: center;'><span style='font-size: 3rem;'>πŸš€</span></div>", unsafe_allow_html=True)
133
  st.markdown(
134
  "<p style='text-align: center; font-size: 18px;'>Welcome to a simple demo of our work! πŸŽ‰ Choose an example or upload your own image to get started! πŸ‘‡</p>",
 
301
  - The model’s responses may contain **<span style='color:#dc3545; font-weight:bold;'>πŸ€– hallucinations or incorrect information</span>**.
302
  - Always consult a **<span style='color:#dc3545; font-weight:bold;'>πŸ‘¨β€βš•οΈ medical professional</span>** for accurate diagnosis and advice.
303
  """, unsafe_allow_html=True)
304
+ st.markdown("""
305
+ <img src="//www.clustrmaps.com/map_v2.png?d=uM9v_RTadJ3hLvNbBSQ2PZ0KNPABbilkZgDyiXmuC0M&cl=ffffff"
306
+ style="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;visibility:hidden;opacity:0;pointer-events:none;z-index:-1;display:none;" />
307
+ """, unsafe_allow_html=True)
308
  # Run inference after upload
309
  if st.button("Run Inference πŸƒβ€β™‚οΈ"):
310
  if image is None: