Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,30 +125,15 @@ SAMPLE_QUERIES = [
|
|
| 125 |
]
|
| 126 |
|
| 127 |
with gr.Blocks(title="Parrotlet-e Retrieval", theme=gr.themes.Base()) as demo:
|
| 128 |
-
|
| 129 |
-
# ---- Header ----
|
| 130 |
gr.Markdown(
|
| 131 |
"""
|
| 132 |
-
Multilingual
|
| 133 |
-
|
| 134 |
-
<hr>
|
| 135 |
-
""",
|
| 136 |
-
)
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
**Parrotlet-e: Indic Medical Entity Embedding Model**
|
| 143 |
-
A multilingual embedding model designed to represent Indian medical terminology across multiple scripts and languages.
|
| 144 |
-
|
| 145 |
-
- π **Model on Hugging Face:** [Parrotlet-e](https://huggingface.co/ekacare/parrotlet-e)
|
| 146 |
-
- π **Benchmarked on:** [Eka-IndicMTEB](https://huggingface.co/datasets/ekacare/Eka-IndicMTEB)
|
| 147 |
-
- π° Read more on our [blog](https://info.eka.care/services/introducing-parrotlet-e-and-eka-indicmteb-bridging-indias-multilingual-healthcare-gap)
|
| 148 |
-
|
| 149 |
-
---
|
| 150 |
-
""",
|
| 151 |
-
)
|
| 152 |
|
| 153 |
# ---- Input Section ----
|
| 154 |
with gr.Group():
|
|
@@ -181,15 +166,15 @@ with gr.Blocks(title="Parrotlet-e Retrieval", theme=gr.themes.Base()) as demo:
|
|
| 181 |
datatype=["number", "str", "str", "str"],
|
| 182 |
interactive=False,
|
| 183 |
wrap=True,
|
| 184 |
-
label="
|
| 185 |
)
|
| 186 |
-
status_box = gr.Textbox(label="Status", interactive=False)
|
| 187 |
|
| 188 |
# ---- Function Binding ----
|
| 189 |
search_btn.click(
|
| 190 |
fn=retrieve_documents,
|
| 191 |
inputs=[query_input, top_k_input],
|
| 192 |
-
outputs=[results_output
|
| 193 |
)
|
| 194 |
|
| 195 |
|
|
|
|
| 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 |
|
| 138 |
# ---- Input Section ----
|
| 139 |
with gr.Group():
|
|
|
|
| 166 |
datatype=["number", "str", "str", "str"],
|
| 167 |
interactive=False,
|
| 168 |
wrap=True,
|
| 169 |
+
label="Search Results"
|
| 170 |
)
|
| 171 |
+
# status_box = gr.Textbox(label="Status", interactive=False)
|
| 172 |
|
| 173 |
# ---- Function Binding ----
|
| 174 |
search_btn.click(
|
| 175 |
fn=retrieve_documents,
|
| 176 |
inputs=[query_input, top_k_input],
|
| 177 |
+
outputs=[results_output],
|
| 178 |
)
|
| 179 |
|
| 180 |
|