Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
|
|
|
| 3 |
|
| 4 |
banner_url = "https://huggingface.co/spaces/deepdml/open_universal_arabic_quranic_asr_leaderboard/main/banner.png"
|
| 5 |
BANNER = f'<div style="display: flex; justify-content: space-around;"><img src="{banner_url}" alt="Banner" style="width: 10vw; max-width: 600px;"> </div>'
|
|
@@ -39,7 +40,7 @@ def styled_message(message):
|
|
| 39 |
UPDATES = "Oct 20th 2025:[Created repo]<br>"
|
| 40 |
|
| 41 |
results = {
|
| 42 |
-
"Model": [
|
| 43 |
"IbrahimSalah/Wav2vecLarge_quran_syllables_recognition", "facebook/mms-1b-all", "facebook/hf-seamless-m4t-medium", "facebook/seamless-m4t-v2-large",
|
| 44 |
"IJyad/whisper-large-v3-Tarteel"],
|
| 45 |
"Average WER⬇️": [4.99, 81.59, 1.33, 281.27, 00.00, 00.00, 00.00, 00.00],
|
|
@@ -49,6 +50,7 @@ results = {
|
|
| 49 |
}
|
| 50 |
|
| 51 |
original_df = pd.DataFrame(results)
|
|
|
|
| 52 |
original_df.sort_values(by="Average WER⬇️", inplace=True)
|
| 53 |
|
| 54 |
TYPES = ['str', 'number', 'number', 'number', 'number']
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
+
from utils_display import make_clickable_model
|
| 4 |
|
| 5 |
banner_url = "https://huggingface.co/spaces/deepdml/open_universal_arabic_quranic_asr_leaderboard/main/banner.png"
|
| 6 |
BANNER = f'<div style="display: flex; justify-content: space-around;"><img src="{banner_url}" alt="Banner" style="width: 10vw; max-width: 600px;"> </div>'
|
|
|
|
| 40 |
UPDATES = "Oct 20th 2025:[Created repo]<br>"
|
| 41 |
|
| 42 |
results = {
|
| 43 |
+
"Model": ["tarteel-ai/whisper-tiny-ar-quran", "Habib-HF/tarbiyah-ai-whisper-medium-merged", "nvidia/stt_ar_fastconformer_hybrid_large_pcd_v1.0",
|
| 44 |
"IbrahimSalah/Wav2vecLarge_quran_syllables_recognition", "facebook/mms-1b-all", "facebook/hf-seamless-m4t-medium", "facebook/seamless-m4t-v2-large",
|
| 45 |
"IJyad/whisper-large-v3-Tarteel"],
|
| 46 |
"Average WER⬇️": [4.99, 81.59, 1.33, 281.27, 00.00, 00.00, 00.00, 00.00],
|
|
|
|
| 50 |
}
|
| 51 |
|
| 52 |
original_df = pd.DataFrame(results)
|
| 53 |
+
original_df["Model"] = original_df["Model"].apply(lambda x: x.replace(x, make_clickable_model(x)))
|
| 54 |
original_df.sort_values(by="Average WER⬇️", inplace=True)
|
| 55 |
|
| 56 |
TYPES = ['str', 'number', 'number', 'number', 'number']
|