Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def retrieve_documents(query: str, top_k: int = 5):
|
|
| 98 |
|
| 99 |
df = pd.DataFrame(results)
|
| 100 |
status = f"✅ Retrieved top {len(results)} documents."
|
| 101 |
-
return df
|
| 102 |
|
| 103 |
except Exception as e:
|
| 104 |
return pd.DataFrame(), f"⚠️ Error: {str(e)}"
|
|
@@ -125,15 +125,48 @@ SAMPLE_QUERIES = [
|
|
| 125 |
]
|
| 126 |
|
| 127 |
with gr.Blocks(title="Parrotlet-e Retrieval", theme=gr.themes.Base()) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
gr.Markdown(
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
# ---- Input Section ----
|
| 139 |
with gr.Group():
|
|
|
|
| 98 |
|
| 99 |
df = pd.DataFrame(results)
|
| 100 |
status = f"✅ Retrieved top {len(results)} documents."
|
| 101 |
+
return df
|
| 102 |
|
| 103 |
except Exception as e:
|
| 104 |
return pd.DataFrame(), f"⚠️ Error: {str(e)}"
|
|
|
|
| 125 |
]
|
| 126 |
|
| 127 |
with gr.Blocks(title="Parrotlet-e Retrieval", theme=gr.themes.Base()) as demo:
|
| 128 |
+
# gr.Markdown(
|
| 129 |
+
# """
|
| 130 |
+
# # **Multilingual Embedding Retrieval powered by EkaCare’s Parrotlet-e — the Indic Medical Entity Embedding Model.**
|
| 131 |
+
# Parrotlet-e is a multilingual embedding model built to understand and represent medical terminology across India’s diverse languages and scripts, enabling seamless search and interoperability in healthcare data.
|
| 132 |
+
|
| 133 |
+
# - 🔗 **Model on Hugging Face:** [Parrotlet-e](https://huggingface.co/ekacare/parrotlet-e)
|
| 134 |
+
# - 📊 **Benchmarked on:** [Eka-IndicMTEB](https://huggingface.co/datasets/ekacare/Eka-IndicMTEB)
|
| 135 |
+
# - 📰 **Read more on our blog:** [Introducing Parrotlet-e and Eka-IndicMTEB — Bridging India’s Multilingual Healthcare Gap](https://info.eka.care/services/introducing-parrotlet-e-and-eka-indicmteb-bridging-indias-multilingual-healthcare-gap)
|
| 136 |
+
# """)
|
| 137 |
gr.Markdown(
|
| 138 |
+
"""
|
| 139 |
+
<div style="text-align: center; margin-top: 10px; margin-bottom: 15px;">
|
| 140 |
+
<h2 style="color:#1f2937; font-size: 26px; margin-bottom: 6px;">
|
| 141 |
+
🦜 <b>Parrotlet-e</b> — Indic Medical Entity Embedding Model
|
| 142 |
+
</h2>
|
| 143 |
+
<p style="font-size:16px; color:#4b5563; max-width:700px; margin: 0 auto;">
|
| 144 |
+
A multilingual embedding model designed to represent Indian medical terminology across diverse languages and scripts —
|
| 145 |
+
enabling seamless medical search, interoperability, and data understanding across India’s healthcare ecosystem.
|
| 146 |
+
</p>
|
| 147 |
+
</div>
|
| 148 |
+
|
| 149 |
+
<div style="text-align: left; margin-top: 15px; font-size:15px;">
|
| 150 |
+
<ul style="list-style: none; padding-left: 0;">
|
| 151 |
+
<li>🔗 <b>Model on Hugging Face:</b>
|
| 152 |
+
<a href="https://huggingface.co/ekacare/parrotlet-e" target="_blank" style="color:#2563eb;">Parrotlet-e</a>
|
| 153 |
+
</li>
|
| 154 |
+
<li>📊 <b>Benchmarked on:</b>
|
| 155 |
+
<a href="https://huggingface.co/datasets/ekacare/Eka-IndicMTEB" target="_blank" style="color:#2563eb;">Eka-IndicMTEB</a>
|
| 156 |
+
</li>
|
| 157 |
+
<li>📰 <b>Read more on our blog:</b>
|
| 158 |
+
<a href="https://info.eka.care/services/introducing-parrotlet-e-and-eka-indicmteb-bridging-indias-multilingual-healthcare-gap"
|
| 159 |
+
target="_blank" style="color:#2563eb;">
|
| 160 |
+
Introducing Parrotlet-e and Eka-IndicMTEB — Bridging India’s Multilingual Healthcare Gap
|
| 161 |
+
</a>
|
| 162 |
+
</li>
|
| 163 |
+
</ul>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<hr style="margin-top:25px; margin-bottom:10px;">
|
| 167 |
+
"""
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
|
| 171 |
# ---- Input Section ----
|
| 172 |
with gr.Group():
|