update app.py
Browse files
app.py
CHANGED
|
@@ -129,21 +129,21 @@ def evaluate_model(model_id):
|
|
| 129 |
|
| 130 |
# Define the Gradio interface
|
| 131 |
def display_results(model_name):
|
| 132 |
-
result_df,
|
| 133 |
-
return result_df,
|
| 134 |
|
| 135 |
demo = gr.Interface(
|
| 136 |
fn=display_results,
|
| 137 |
-
inputs=gr.Textbox(label="Enter
|
| 138 |
outputs=[
|
| 139 |
gr.Dataframe(label="Evaluation Results"),
|
| 140 |
gr.Plot(label="Arabic Financial Dataset (Financial Evaluation)"),
|
| 141 |
gr.Plot(label="MLQA Arabic (Long Context Evaluation)"),
|
| 142 |
gr.Plot(label="ARCD (Short Context Evaluation)")
|
| 143 |
],
|
| 144 |
-
title="
|
| 145 |
description=(
|
| 146 |
-
"Evaluate your Sentence Transformer model's performance on **context and question retrieval** for Arabic datasets
|
| 147 |
"- **ARCD** evaluates short context retrieval performance.\n"
|
| 148 |
"- **MLQA Arabic** evaluates long context retrieval performance.\n"
|
| 149 |
"- **Arabic Financial Dataset** focuses on financial context retrieval.\n\n"
|
|
@@ -156,6 +156,9 @@ demo = gr.Interface(
|
|
| 156 |
css="footer {visibility: hidden;}"
|
| 157 |
)
|
| 158 |
|
|
|
|
|
|
|
|
|
|
| 159 |
demo.launch(share=True)
|
| 160 |
|
| 161 |
# Add the footer
|
|
|
|
| 129 |
|
| 130 |
# Define the Gradio interface
|
| 131 |
def display_results(model_name):
|
| 132 |
+
result_df, chart1, chart2, chart3 = evaluate_model(model_name)
|
| 133 |
+
return result_df, chart1, chart2, chart3
|
| 134 |
|
| 135 |
demo = gr.Interface(
|
| 136 |
fn=display_results,
|
| 137 |
+
inputs=gr.Textbox(label="Enter Your Embedding Model ID", placeholder="e.g., Omartificial-Intelligence-Space/GATE-AraBert-v1"),
|
| 138 |
outputs=[
|
| 139 |
gr.Dataframe(label="Evaluation Results"),
|
| 140 |
gr.Plot(label="Arabic Financial Dataset (Financial Evaluation)"),
|
| 141 |
gr.Plot(label="MLQA Arabic (Long Context Evaluation)"),
|
| 142 |
gr.Plot(label="ARCD (Short Context Evaluation)")
|
| 143 |
],
|
| 144 |
+
title="Evaluation of Arabic Matryoshka Embedding Models on Retreival Tasks ",
|
| 145 |
description=(
|
| 146 |
+
"Evaluate your Sentence Transformer model's performance on **context and question retrieval** for Arabic datasets for enhancing Arabic RAG.\n"
|
| 147 |
"- **ARCD** evaluates short context retrieval performance.\n"
|
| 148 |
"- **MLQA Arabic** evaluates long context retrieval performance.\n"
|
| 149 |
"- **Arabic Financial Dataset** focuses on financial context retrieval.\n\n"
|
|
|
|
| 156 |
css="footer {visibility: hidden;}"
|
| 157 |
)
|
| 158 |
|
| 159 |
+
demo.launch(share=True)
|
| 160 |
+
|
| 161 |
+
|
| 162 |
demo.launch(share=True)
|
| 163 |
|
| 164 |
# Add the footer
|