Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,13 +5,24 @@ from huggingface_hub import InferenceClient
|
|
| 5 |
MODELS = {
|
| 6 |
"Phase 2: Stable (Formal)": {
|
| 7 |
"id": "st192011/Maltese-EuroLLM-1.7B-Phase2-Stable",
|
| 8 |
-
"description":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"chrf": "60.18",
|
| 10 |
"comet": "0.6431"
|
| 11 |
},
|
| 12 |
"Phase 4: Anchored (Native)": {
|
| 13 |
"id": "st192011/Maltese-EuroLLM-1.7B-Phase4-Anchored",
|
| 14 |
-
"description":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"chrf": "52.68",
|
| 16 |
"comet": "0.6567"
|
| 17 |
}
|
|
@@ -50,7 +61,7 @@ def translate_logic(text, selected_models, temp):
|
|
| 50 |
|
| 51 |
# --- GRADIO UI ---
|
| 52 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 53 |
-
gr.Markdown("# 🇲🇹 Maltese-MT
|
| 54 |
gr.Markdown("Compare different generations of fine-tuned EuroLLM models for English-to-Maltese translation.")
|
| 55 |
|
| 56 |
with gr.Row():
|
|
|
|
| 5 |
MODELS = {
|
| 6 |
"Phase 2: Stable (Formal)": {
|
| 7 |
"id": "st192011/Maltese-EuroLLM-1.7B-Phase2-Stable",
|
| 8 |
+
"description": (
|
| 9 |
+
"The 'Bureaucrat Bot'. Built upon a foundational adaptation phase that mixed "
|
| 10 |
+
"monolingual Maltese and Italian to bridge morphological roots. This version "
|
| 11 |
+
"was fine-tuned on high-fidelity EU and governmental parallel corpora, "
|
| 12 |
+
"optimizing it for extreme formal precision and administrative accuracy."
|
| 13 |
+
),
|
| 14 |
"chrf": "60.18",
|
| 15 |
"comet": "0.6431"
|
| 16 |
},
|
| 17 |
"Phase 4: Anchored (Native)": {
|
| 18 |
"id": "st192011/Maltese-EuroLLM-1.7B-Phase4-Anchored",
|
| 19 |
+
"description": (
|
| 20 |
+
"The 'Native Speaker'. An evolution of Phase 2 utilizing a curriculum-based "
|
| 21 |
+
"'Full Circle' approach. It integrates synthesized reasoning chains (CoT) "
|
| 22 |
+
"that allow the model to process linguistic logic before translating. By mixing "
|
| 23 |
+
"all previous data types, it anchors factual accuracy to native-level phrasing "
|
| 24 |
+
"and cultural awareness."
|
| 25 |
+
),
|
| 26 |
"chrf": "52.68",
|
| 27 |
"comet": "0.6567"
|
| 28 |
}
|
|
|
|
| 61 |
|
| 62 |
# --- GRADIO UI ---
|
| 63 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 64 |
+
gr.Markdown("# 🇲🇹 Maltese-MT Lab")
|
| 65 |
gr.Markdown("Compare different generations of fine-tuned EuroLLM models for English-to-Maltese translation.")
|
| 66 |
|
| 67 |
with gr.Row():
|