Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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:
|