feat: add 28 languages with translations
Browse files
app.py
CHANGED
|
@@ -14,25 +14,412 @@ if HF_TOKEN:
|
|
| 14 |
login(token=HF_TOKEN)
|
| 15 |
|
| 16 |
TRANSLATIONS = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
"pt-pt": {
|
| 18 |
"title": "Classificação de Imagens - Compara Todos os Modelos",
|
| 19 |
-
"description": "🧪 Executa **todos os modelos** de classificação de imagens do Hugging Face numa só imagem e compara os resultados
|
| 20 |
"upload": "Carregar Imagem",
|
| 21 |
"run_button": "Executar Todos os Modelos",
|
| 22 |
"results": "Resultados",
|
| 23 |
"download": "Descarregar CSV",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
},
|
| 25 |
-
"
|
| 26 |
-
"title": "
|
| 27 |
-
"description": "🧪
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
"upload": "Upload Image",
|
| 29 |
"run_button": "Run All Models",
|
| 30 |
-
"results": "
|
| 31 |
"download": "Download CSV",
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
|
| 35 |
-
lang = st.
|
| 36 |
t = TRANSLATIONS[lang]
|
| 37 |
|
| 38 |
MODELS = [
|
|
@@ -149,6 +536,7 @@ def main():
|
|
| 149 |
|
| 150 |
if results_data:
|
| 151 |
df = pd.DataFrame(results_data)
|
|
|
|
| 152 |
st.subheader(f"{t['results']} ({len(results_data)} models)")
|
| 153 |
|
| 154 |
st.markdown("""
|
|
@@ -162,14 +550,14 @@ def main():
|
|
| 162 |
use_container_width=True,
|
| 163 |
hide_index=True,
|
| 164 |
column_config={
|
| 165 |
-
"Model": st.column_config.TextColumn("Model", width="medium"),
|
| 166 |
-
"Category": st.column_config.TextColumn("Category", width="small"),
|
| 167 |
-
"Label 1": st.column_config.TextColumn("Label 1", width="medium"),
|
| 168 |
-
"Score 1": st.column_config.TextColumn("Score 1", width="small"),
|
| 169 |
-
"Label 2": st.column_config.TextColumn("Label 2", width="medium"),
|
| 170 |
-
"Score 2": st.column_config.TextColumn("Score 2", width="small"),
|
| 171 |
-
"Label 3": st.column_config.TextColumn("Label 3", width="medium"),
|
| 172 |
-
"Score 3": st.column_config.TextColumn("Score 3", width="small"),
|
| 173 |
}
|
| 174 |
)
|
| 175 |
|
|
|
|
| 14 |
login(token=HF_TOKEN)
|
| 15 |
|
| 16 |
TRANSLATIONS = {
|
| 17 |
+
"en-uk": {
|
| 18 |
+
"title": "Image Classification - Compare All Models",
|
| 19 |
+
"description": "🧪 Run **all** Hugging Face image classification models on a single image and compare results in an interactive table.",
|
| 20 |
+
"upload": "Upload Image",
|
| 21 |
+
"run_button": "Run All Models",
|
| 22 |
+
"results": "Results",
|
| 23 |
+
"download": "Download CSV",
|
| 24 |
+
"columns": {
|
| 25 |
+
"Model": "Model", "Category": "Category", "Label 1": "Label 1", "Score 1": "Score 1",
|
| 26 |
+
"Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",
|
| 27 |
+
},
|
| 28 |
+
"lang_name": "English"
|
| 29 |
+
},
|
| 30 |
"pt-pt": {
|
| 31 |
"title": "Classificação de Imagens - Compara Todos os Modelos",
|
| 32 |
+
"description": "🧪 Executa **todos os modelos** de classificação de imagens do Hugging Face numa só imagem e compara os resultados numa tabela interativa.",
|
| 33 |
"upload": "Carregar Imagem",
|
| 34 |
"run_button": "Executar Todos os Modelos",
|
| 35 |
"results": "Resultados",
|
| 36 |
"download": "Descarregar CSV",
|
| 37 |
+
"columns": {
|
| 38 |
+
"Model": "Modelo", "Category": "Categoria", "Label 1": "Label 1", "Score 1": "Score 1",
|
| 39 |
+
"Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",
|
| 40 |
+
},
|
| 41 |
+
"lang_name": "Português (PT)"
|
| 42 |
},
|
| 43 |
+
"pt-br": {
|
| 44 |
+
"title": "Classificação de Imagens - Compare Todos os Modelos",
|
| 45 |
+
"description": "🧪 Execute **todos os modelos** de classificação de imagens do Hugging Face em uma única imagem e compare os resultados em uma tabela interativa.",
|
| 46 |
+
"upload": "Carregar Imagem",
|
| 47 |
+
"run_button": "Executar Todos os Modelos",
|
| 48 |
+
"results": "Resultados",
|
| 49 |
+
"download": "Baixar CSV",
|
| 50 |
+
"columns": {
|
| 51 |
+
"Model": "Modelo", "Category": "Categoria", "Label 1": "Label 1", "Score 1": "Score 1",
|
| 52 |
+
"Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",
|
| 53 |
+
},
|
| 54 |
+
"lang_name": "Português (BR)"
|
| 55 |
+
},
|
| 56 |
+
"zh-cn": {
|
| 57 |
+
"title": "图像分类 - 比较所有模型",
|
| 58 |
+
"description": "🧪 在单张图像上运行**所有**Hugging Face图像分类模型,并在交互式表格中比较结果。",
|
| 59 |
+
"upload": "上传图片",
|
| 60 |
+
"run_button": "运行所有模型",
|
| 61 |
+
"results": "结果",
|
| 62 |
+
"download": "下载CSV",
|
| 63 |
+
"columns": {
|
| 64 |
+
"Model": "模型", "Category": "类别", "Label 1": "标签1", "Score 1": "分数1",
|
| 65 |
+
"Label 2": "标签2", "Score 2": "分数2", "Label 3": "标签3", "Score 3": "分数3",
|
| 66 |
+
},
|
| 67 |
+
"lang_name": "中文"
|
| 68 |
+
},
|
| 69 |
+
"hi": {
|
| 70 |
+
"title": "छवि वर्गीकरण - सभी मॉडल की तुलना करें",
|
| 71 |
+
"description": "🧪 एक ही छवि पर **सभी** Hugging Face छवि वर्गीकरण मॉडल चलाएं और परिणामों की एक इंटरैक्टिव टेबल में तुलना करें।",
|
| 72 |
+
"upload": "छवि अपलोड करें",
|
| 73 |
+
"run_button": "सभी मॉडल चलाएं",
|
| 74 |
+
"results": "परिणाम",
|
| 75 |
+
"download": "CSV डाउनलोड करें",
|
| 76 |
+
"columns": {
|
| 77 |
+
"Model": "मॉडल", "Category": "श्रेणी", "Label 1": "लेबल 1", "Score 1": "स्कोर 1",
|
| 78 |
+
"Label 2": "लेबल 2", "Score 2": "स्कोर 2", "Label 3": "लेबल 3", "Score 3": "स्कोर 3",
|
| 79 |
+
},
|
| 80 |
+
"lang_name": "हिन्दी"
|
| 81 |
+
},
|
| 82 |
+
"es": {
|
| 83 |
+
"title": "Clasificación de Imágenes - Compara Todos los Modelos",
|
| 84 |
+
"description": "🧪 Ejecuta **todos** los modelos de clasificación de imágenes de Hugging Face en una sola imagen y compara los resultados en una tabla interactiva.",
|
| 85 |
+
"upload": "Subir Imagen",
|
| 86 |
+
"run_button": "Ejecutar Todos los Modelos",
|
| 87 |
+
"results": "Resultados",
|
| 88 |
+
"download": "Descargar CSV",
|
| 89 |
+
"columns": {
|
| 90 |
+
"Model": "Modelo", "Category": "Categoría", "Label 1": "Etiqueta 1", "Score 1": "Puntuación 1",
|
| 91 |
+
"Label 2": "Etiqueta 2", "Score 2": "Puntuación 2", "Label 3": "Etiqueta 3", "Score 3": "Puntuación 3",
|
| 92 |
+
},
|
| 93 |
+
"lang_name": "Español"
|
| 94 |
+
},
|
| 95 |
+
"ar": {
|
| 96 |
+
"title": "تصنيف الصور - قارن جميع النماذج",
|
| 97 |
+
"description": "🧪 شغّل **جميع** نماذج تصنيف صور Hugging Face على صورة واحدة و��ارن النتائج في جدول تفاعلي.",
|
| 98 |
+
"upload": "تحميل صورة",
|
| 99 |
+
"run_button": "تشغيل جميع النماذج",
|
| 100 |
+
"results": "النتائج",
|
| 101 |
+
"download": "تحميل CSV",
|
| 102 |
+
"columns": {
|
| 103 |
+
"Model": "النموذج", "Category": "الفئة", "Label 1": "التسمية 1", "Score 1": "النتيجة 1",
|
| 104 |
+
"Label 2": "التسمية 2", "Score 2": "النتيجة 2", "Label 3": "التسمية 3", "Score 3": "النتيجة 3",
|
| 105 |
+
},
|
| 106 |
+
"lang_name": "العربية"
|
| 107 |
+
},
|
| 108 |
+
"fr": {
|
| 109 |
+
"title": "Classification d'Images - Comparer Tous les Modèles",
|
| 110 |
+
"description": "🧪 Exécutez **tous** les modèles de classification d'images Hugging Face sur une seule image et comparez les résultats dans un tableau interactif.",
|
| 111 |
+
"upload": "Télécharger une Image",
|
| 112 |
+
"run_button": "Exécuter Tous les Modèles",
|
| 113 |
+
"results": "Résultats",
|
| 114 |
+
"download": "Télécharger CSV",
|
| 115 |
+
"columns": {
|
| 116 |
+
"Model": "Modèle", "Category": "Catégorie", "Label 1": "Étiquette 1", "Score 1": "Score 1",
|
| 117 |
+
"Label 2": "Étiquette 2", "Score 2": "Score 2", "Label 3": "Étiquette 3", "Score 3": "Score 3",
|
| 118 |
+
},
|
| 119 |
+
"lang_name": "Français"
|
| 120 |
+
},
|
| 121 |
+
"bn": {
|
| 122 |
+
"title": "ছবি শ্রেণীবিভাগ - সব মডেল তুলনা করুন",
|
| 123 |
+
"description": "🧪 একটি একক ছবিতে **সমস্ত** Hugging Face ছবি শ্রেণীবিভাগ মডেল চালান এবং একটি ইন্টারেক্টিভ টেবিলে ফলাফল তুলনা করুন।",
|
| 124 |
+
"upload": "ছবি আপলোড করুন",
|
| 125 |
+
"run_button": "সব মডেল চালান",
|
| 126 |
+
"results": "ফলাফল",
|
| 127 |
+
"download": "CSV ডাউনলোড করুন",
|
| 128 |
+
"columns": {
|
| 129 |
+
"Model": "মডেল", "Category": "বিভাগ", "Label 1": "লেবেল 1", "Score 1": "স্কোর 1",
|
| 130 |
+
"Label 2": "লেবেল 2", "Score 2": "স্কোর 2", "Label 3": "লেবেল 3", "Score 3": "স্কোর 3",
|
| 131 |
+
},
|
| 132 |
+
"lang_name": "বাংলা"
|
| 133 |
+
},
|
| 134 |
+
"ru": {
|
| 135 |
+
"title": "Классификация изображений - Сравните все модели",
|
| 136 |
+
"description": "🧪 Запустите **все** модели классификации изображений Hugging Face на одном изображении и сравните результаты в интерактивной таблице.",
|
| 137 |
+
"upload": "Загрузить изображение",
|
| 138 |
+
"run_button": "Запустить все модели",
|
| 139 |
+
"results": "Результаты",
|
| 140 |
+
"download": "Скачать CSV",
|
| 141 |
+
"columns": {
|
| 142 |
+
"Model": "Модель", "Category": "Категория", "Label 1": "Метка 1", "Score 1": "Оценка 1",
|
| 143 |
+
"Label 2": "Метка 2", "Score 2": "Оценка 2", "Label 3": "Метка 3", "Score 3": "Оценка 3",
|
| 144 |
+
},
|
| 145 |
+
"lang_name": "Русский"
|
| 146 |
+
},
|
| 147 |
+
"id": {
|
| 148 |
+
"title": "Klasifikasi Gambar - Bandingkan Semua Model",
|
| 149 |
+
"description": "🧪 Jalankan **semua** model klasifikasi gambar Hugging Face pada satu gambar dan bandingkan hasilnya dalam tabel interaktif.",
|
| 150 |
+
"upload": "Unggah Gambar",
|
| 151 |
+
"run_button": "Jalankan Semua Model",
|
| 152 |
+
"results": "Hasil",
|
| 153 |
+
"download": "Unduh CSV",
|
| 154 |
+
"columns": {
|
| 155 |
+
"Model": "Model", "Category": "Kategori", "Label 1": "Label 1", "Score 1": "Skor 1",
|
| 156 |
+
"Label 2": "Label 2", "Score 2": "Skor 2", "Label 3": "Label 3", "Score 3": "Skor 3",
|
| 157 |
+
},
|
| 158 |
+
"lang_name": "Bahasa Indonesia"
|
| 159 |
+
},
|
| 160 |
+
"de": {
|
| 161 |
+
"title": "Bildklassifizierung - Alle Modelle vergleichen",
|
| 162 |
+
"description": "🧪 Führen Sie **alle** Hugging Face Bildklassifizierungsmodelle auf einem einzigen Bild aus und vergleichen Sie die Ergebnisse in einer interaktiven Tabelle.",
|
| 163 |
+
"upload": "Bild hochladen",
|
| 164 |
+
"run_button": "Alle Modelle ausführen",
|
| 165 |
+
"results": "Ergebnisse",
|
| 166 |
+
"download": "CSV herunterladen",
|
| 167 |
+
"columns": {
|
| 168 |
+
"Model": "Modell", "Category": "Kategorie", "Label 1": "Label 1", "Score 1": "Bewertung 1",
|
| 169 |
+
"Label 2": "Label 2", "Score 2": "Bewertung 2", "Label 3": "Label 3", "Score 3": "Bewertung 3",
|
| 170 |
+
},
|
| 171 |
+
"lang_name": "Deutsch"
|
| 172 |
+
},
|
| 173 |
+
"nl": {
|
| 174 |
+
"title": "Afbeeldingsclassificatie - Vergelijk Alle Modellen",
|
| 175 |
+
"description": "🧪 Voer **alle** Hugging Face-afbeeldingsclassificatiemodellen uit op één enkele afbeelding en vergelijk de resultaten in een interactieve tabel.",
|
| 176 |
+
"upload": "Afbeelding uploaden",
|
| 177 |
+
"run_button": "Alle modellen uitvoeren",
|
| 178 |
+
"results": "Resultaten",
|
| 179 |
+
"download": "CSV downloaden",
|
| 180 |
+
"columns": {
|
| 181 |
+
"Model": "Model", "Category": "Categorie", "Label 1": "Label 1", "Score 1": "Score 1",
|
| 182 |
+
"Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",
|
| 183 |
+
},
|
| 184 |
+
"lang_name": "Nederlands"
|
| 185 |
+
},
|
| 186 |
+
"it": {
|
| 187 |
+
"title": "Classificazione Immagini - Confronta Tutti i Modelli",
|
| 188 |
+
"description": "🧪 Esegui **tutti** i modelli di classificazione immagini Hugging Face su una singola immagine e confronta i risultati in una tabella interattiva.",
|
| 189 |
+
"upload": "Carica Immagine",
|
| 190 |
+
"run_button": "Esegui Tutti i Modelli",
|
| 191 |
+
"results": "Risultati",
|
| 192 |
+
"download": "Scarica CSV",
|
| 193 |
+
"columns": {
|
| 194 |
+
"Model": "Modello", "Category": "Categoria", "Label 1": "Etichetta 1", "Score 1": "Punteggio 1",
|
| 195 |
+
"Label 2": "Etichetta 2", "Score 2": "Punteggio 2", "Label 3": "Etichetta 3", "Score 3": "Punteggio 3",
|
| 196 |
+
},
|
| 197 |
+
"lang_name": "Italiano"
|
| 198 |
+
},
|
| 199 |
+
"pl": {
|
| 200 |
+
"title": "Klasyfikacja Obrazów - Porównaj Wszystkie Modele",
|
| 201 |
+
"description": "🧪 Uruchom **wszystkie** modele klasyfikacji obrazów Hugging Face na jednym obrazie i porównaj wyniki w tabeli interaktywnej.",
|
| 202 |
+
"upload": "Prześlij obraz",
|
| 203 |
+
"run_button": "Uruchom wszystkie modele",
|
| 204 |
+
"results": "Wyniki",
|
| 205 |
+
"download": "Pobierz CSV",
|
| 206 |
+
"columns": {
|
| 207 |
+
"Model": "Model", "Category": "Kategoria", "Label 1": "Etykieta 1", "Score 1": "Wynik 1",
|
| 208 |
+
"Label 2": "Etykieta 2", "Score 2": "Wynik 2", "Label 3": "Etykieta 3", "Score 3": "Wynik 3",
|
| 209 |
+
},
|
| 210 |
+
"lang_name": "Polski"
|
| 211 |
+
},
|
| 212 |
+
"ro": {
|
| 213 |
+
"title": "Clasificarea Imaginilor - Compară Toate Modelele",
|
| 214 |
+
"description": "🧪 Rulează **toate** modelele de clasificare a imaginilor Hugging Face pe o singură imagine și compară rezultatele într-un tabel interactiv.",
|
| 215 |
+
"upload": "Încărcați imaginea",
|
| 216 |
+
"run_button": "Rulează toate modelele",
|
| 217 |
+
"results": "Rezultate",
|
| 218 |
+
"download": "Descarcă CSV",
|
| 219 |
+
"columns": {
|
| 220 |
+
"Model": "Model", "Category": "Categorie", "Label 1": "Etichetă 1", "Score 1": "Scor 1",
|
| 221 |
+
"Label 2": "Etichetă 2", "Score 2": "Scor 2", "Label 3": "Etichetă 3", "Score 3": "Scor 3",
|
| 222 |
+
},
|
| 223 |
+
"lang_name": "Română"
|
| 224 |
+
},
|
| 225 |
+
"hu": {
|
| 226 |
+
"title": "Képbesorolás - Összes Modell Összehasonlítása",
|
| 227 |
+
"description": "🧪 Futtassa **összes** Hugging Face képosztályozási modellt egyetlen képen, és hasonlítsa össze az eredményeket egy interaktív táblázatban.",
|
| 228 |
+
"upload": "Kép feltöltése",
|
| 229 |
+
"run_button": "Összes modell futtatása",
|
| 230 |
+
"results": "Eredmények",
|
| 231 |
+
"download": "CSV letöltése",
|
| 232 |
+
"columns": {
|
| 233 |
+
"Model": "Modell", "Category": "Kategoria", "Label 1": "Címke 1", "Score 1": "Pontszám 1",
|
| 234 |
+
"Label 2": "Címke 2", "Score 2": "Pontszám 2", "Label 3": "Címke 3", "Score 3": "Pontszám 3",
|
| 235 |
+
},
|
| 236 |
+
"lang_name": "Magyar"
|
| 237 |
+
},
|
| 238 |
+
"cs": {
|
| 239 |
+
"title": "Klasifikace obrázků - Porovnejte všechny modely",
|
| 240 |
+
"description": "🧪 Spusťte **všechny** modely klasifikace obrázků Hugging Face na jednom obrázku a porovnejte výsledky v interaktivní tabulce.",
|
| 241 |
+
"upload": "Nahrát obrázek",
|
| 242 |
+
"run_button": "Spustit všechny modely",
|
| 243 |
+
"results": "Výsledky",
|
| 244 |
+
"download": "Stáhnout CSV",
|
| 245 |
+
"columns": {
|
| 246 |
+
"Model": "Model", "Category": "Kategorie", "Label 1": "Štítek 1", "Score 1": "Skóre 1",
|
| 247 |
+
"Label 2": "Štítek 2", "Score 2": "Skóre 2", "Label 3": "Štítek 3", "Score 3": "Skóre 3",
|
| 248 |
+
},
|
| 249 |
+
"lang_name": "Čeština"
|
| 250 |
+
},
|
| 251 |
+
"sk": {
|
| 252 |
+
"title": "Klasifikácia obrázkov - Porovnajte všetky modely",
|
| 253 |
+
"description": "🧪 Spustite **všetky** modely klasifikácie obrázkov Hugging Face na jednom obrázku a porovnajte výsledky v interaktívnej tabuľke.",
|
| 254 |
+
"upload": "Nahrať obrázok",
|
| 255 |
+
"run_button": "Spustiť všetky modely",
|
| 256 |
+
"results": "Výsledky",
|
| 257 |
+
"download": "Stiahnuť CSV",
|
| 258 |
+
"columns": {
|
| 259 |
+
"Model": "Model", "Category": "Kategória", "Label 1": "Štítok 1", "Score 1": "Skóre 1",
|
| 260 |
+
"Label 2": "Štítok 2", "Score 2": "Skóre 2", "Label 3": "Štítok 3", "Score 3": "Skóre 3",
|
| 261 |
+
},
|
| 262 |
+
"lang_name": "Slovenčina"
|
| 263 |
+
},
|
| 264 |
+
"sl": {
|
| 265 |
+
"title": "Klasifikacija slik - Primerjajte vse modele",
|
| 266 |
+
"description": "🧪 Zaženite **vse** modele klasifikacije slik Hugging Face na eni sliki in primerjajte rezultate v interaktivni tabeli.",
|
| 267 |
+
"upload": "Naloži sliko",
|
| 268 |
+
"run_button": "Zaženi vse modele",
|
| 269 |
+
"results": "Rezultati",
|
| 270 |
+
"download": "Prenesi CSV",
|
| 271 |
+
"columns": {
|
| 272 |
+
"Model": "Model", "Category": "Kategorije", "Label 1": "Oznaka 1", "Score 1": "Točke 1",
|
| 273 |
+
"Label 2": "Oznaka 2", "Score 2": "Točke 2", "Label 3": "Oznaka 3", "Score 3": "Točke 3",
|
| 274 |
+
},
|
| 275 |
+
"lang_name": "Slovenščina"
|
| 276 |
+
},
|
| 277 |
+
"da": {
|
| 278 |
+
"title": "Billedklassifikation - Sammenlign Alle Modeller",
|
| 279 |
+
"description": "🧪 Kør **alle** Hugging Face billedklassifikationsmodeller på et enkelt billede og sammenlign resultaterne i en interaktiv tabel.",
|
| 280 |
+
"upload": "Upload billede",
|
| 281 |
+
"run_button": "Kør alle modeller",
|
| 282 |
+
"results": "Resultater",
|
| 283 |
+
"download": "Download CSV",
|
| 284 |
+
"columns": {
|
| 285 |
+
"Model": "Model", "Category": "Kategori", "Label 1": "Etiket 1", "Score 1": "Point 1",
|
| 286 |
+
"Label 2": "Etiket 2", "Score 2": "Point 2", "Label 3": "Etiket 3", "Score 3": "Point 3",
|
| 287 |
+
},
|
| 288 |
+
"lang_name": "Dansk"
|
| 289 |
+
},
|
| 290 |
+
"sv": {
|
| 291 |
+
"title": "Bildklassificering - Jämför Alla Modeller",
|
| 292 |
+
"description": "🧪 Kör **alla** Hugging Face bildklassificeringsmodeller på en enda bild och jämför resultaten i en interaktiv tabell.",
|
| 293 |
+
"upload": "Ladda upp bild",
|
| 294 |
+
"run_button": "Kör alla modeller",
|
| 295 |
+
"results": "Resultat",
|
| 296 |
+
"download": "Ladda ner CSV",
|
| 297 |
+
"columns": {
|
| 298 |
+
"Model": "Modell", "Category": "Kategori", "Label 1": "Etikett 1", "Score 1": "Poäng 1",
|
| 299 |
+
"Label 2": "Etikett 2", "Score 2": "Poäng 2", "Label 3": "Etikett 3", "Score 3": "Poäng 3",
|
| 300 |
+
},
|
| 301 |
+
"lang_name": "Svenska"
|
| 302 |
+
},
|
| 303 |
+
"fi": {
|
| 304 |
+
"title": "Kuvaluokittelu - Vertaa Kaikkia Malleja",
|
| 305 |
+
"description": "🧪 Suorita **kaikki** Hugging Face -kuvaluokittelumallit yhdellä kuvalla ja vertaa tuloksia vuorovaikutteisessa taulukossa.",
|
| 306 |
+
"upload": "Lataa kuva",
|
| 307 |
+
"run_button": "Suorita kaikki mallit",
|
| 308 |
+
"results": "Tulokset",
|
| 309 |
+
"download": "Lataa CSV",
|
| 310 |
+
"columns": {
|
| 311 |
+
"Model": "Malli", "Category": "Luokka", "Label 1": "Tunniste 1", "Score 1": "Pisteet 1",
|
| 312 |
+
"Label 2": "Tunniste 2", "Score 2": "Pisteet 2", "Label 3": "Tunniste 3", "Score 3": "Pisteet 3",
|
| 313 |
+
},
|
| 314 |
+
"lang_name": "Suomi"
|
| 315 |
+
},
|
| 316 |
+
"el": {
|
| 317 |
+
"title": "Ταξινόμηση Εικόνων - Σύγκριση Όλων των Μοντέλων",
|
| 318 |
+
"description": "🧪 Εκτελέστε **όλα** τα μοντέλα ταξινόμησης εικόνων του Hugging Face σε μία εικόνα και συγκρίνετε τα αποτελέσματα σε έναν διαδραστικό πίνακα.",
|
| 319 |
+
"upload": "Μεταφόρτωση εικόνας",
|
| 320 |
+
"run_button": "Εκτέλεση όλων των μοντέλων",
|
| 321 |
+
"results": "Αποτελέσματα",
|
| 322 |
+
"download": "Λήψη CSV",
|
| 323 |
+
"columns": {
|
| 324 |
+
"Model": "Μοντέλο", "Category": "Κατηγορία", "Label 1": "Ετικέτα 1", "Score 1": "Βαθμολογία 1",
|
| 325 |
+
"Label 2": "Ετικέτα 2", "Score 2": "Βαθμολογία 2", "Label 3": "Ετικέτα 3", "Score 3": "Βαθμολογία 3",
|
| 326 |
+
},
|
| 327 |
+
"lang_name": "Ελληνικά"
|
| 328 |
+
},
|
| 329 |
+
"bg": {
|
| 330 |
+
"title": "Класификация на изображения - Сравнете всички модели",
|
| 331 |
+
"description": "🧪 Стартирайте **всички** модели за класификация на изображения от Hugging Face на едно изображение и сравнете резултатите в интерактивна таблица.",
|
| 332 |
+
"upload": "Качете изображение",
|
| 333 |
+
"run_button": "Стартирайте всички модели",
|
| 334 |
+
"results": "Резултати",
|
| 335 |
+
"download": "Изтеглете CSV",
|
| 336 |
+
"columns": {
|
| 337 |
+
"Model": "Модел", "Category": "Категория", "Label 1": "Етикет 1", "Score 1": "Резултат 1",
|
| 338 |
+
"Label 2": "Етикет 2", "Score 2": "Резултат 2", "Label 3": "Етикет 3", "Score 3": "Резултат 3",
|
| 339 |
+
},
|
| 340 |
+
"lang_name": "Български"
|
| 341 |
+
},
|
| 342 |
+
"lv": {
|
| 343 |
+
"title": "Attēlu klasifikācija - Salīdziniet visus modeļus",
|
| 344 |
+
"description": "🧪 Palaidiet **visus** Hugging Face attēlu klasifikācijas modeļus uz viena attēla un salīdziniet rezultātus interaktīvā tabulā.",
|
| 345 |
+
"upload": "Augšupielādēt attēlu",
|
| 346 |
+
"run_button": "Palaist visus modeļus",
|
| 347 |
+
"results": "Rezultāti",
|
| 348 |
+
"download": "Lejupielādēt CSV",
|
| 349 |
+
"columns": {
|
| 350 |
+
"Model": "Modelis", "Category": "Kategorijas", "Label 1": "Etiķete 1", "Score 1": "Rezultāts 1",
|
| 351 |
+
"Label 2": "Etiķete 2", "Score 2": "Rezultāts 2", "Label 3": "Etiķete 3", "Score 3": "Rezultāts 3",
|
| 352 |
+
},
|
| 353 |
+
"lang_name": "Latviešu"
|
| 354 |
+
},
|
| 355 |
+
"lt": {
|
| 356 |
+
"title": "Vaizdų klasifikavimas - Palyginkite visus modelius",
|
| 357 |
+
"description": "🧪 Paleiskite **visus** Hugging Face vaizdų klasifikavimo modelius vienoje nuotraukoje ir palyginkite rezultatus interaktyvioje lentelėje.",
|
| 358 |
+
"upload": "Įkelti vaizdą",
|
| 359 |
+
"run_button": "Paleisti visus modelius",
|
| 360 |
+
"results": "Rezultatai",
|
| 361 |
+
"download": "Atsisiųsti CSV",
|
| 362 |
+
"columns": {
|
| 363 |
+
"Model": "Modelis", "Category": "Kategorijos", "Label 1": "Etiketė 1", "Score 1": "Rezultatas 1",
|
| 364 |
+
"Label 2": "Etiketė 2", "Score 2": "Rezultatas 2", "Label 3": "Etiketė 3", "Score 3": "Rezultatas 3",
|
| 365 |
+
},
|
| 366 |
+
"lang_name": "Lietuvių"
|
| 367 |
+
},
|
| 368 |
+
"et": {
|
| 369 |
+
"title": "Pildiklassifikatsioon - Võrdle kõiki mudeleid",
|
| 370 |
+
"description": "🧪 Käivitage **kõik** Hugging Face pildiklassifikatsiooni mudelid ühel pildil ja võrrelge tulemusi interaktiivses tabelis.",
|
| 371 |
+
"upload": "Laadi pilt üles",
|
| 372 |
+
"run_button": "Käivita kõik mudelid",
|
| 373 |
+
"results": "Tulemused",
|
| 374 |
+
"download": "Laadi CSV alla",
|
| 375 |
+
"columns": {
|
| 376 |
+
"Model": "Mudel", "Category": "Kategooria", "Label 1": "Silt 1", "Score 1": "Skoor 1",
|
| 377 |
+
"Label 2": "Silt 2", "Score 2": "Skoor 2", "Label 3": "Silt 3", "Score 3": "Skoor 3",
|
| 378 |
+
},
|
| 379 |
+
"lang_name": "Eesti"
|
| 380 |
+
},
|
| 381 |
+
"ga": {
|
| 382 |
+
"title": "Rangú Imagacha - Déan Comparáid idir na Samhlaithe go léir",
|
| 383 |
+
"description": "🧪 Rith **gach** samhail rangaithe imeagacha Hugging Face ar aon íomhá amháin agus déan comparáid ar thorthaí i dtábla idirghníomhach.",
|
| 384 |
+
"upload": "Uaslódáil Íomhá",
|
| 385 |
+
"run_button": "Rith gach Samhail",
|
| 386 |
+
"results": "Torthaí",
|
| 387 |
+
"download": "Íosluchtaigh CSV",
|
| 388 |
+
"columns": {
|
| 389 |
+
"Model": "Samhail", "Category": "Catagóir", "Label 1": "Lipéad 1", "Score 1": "Scór 1",
|
| 390 |
+
"Label 2": "Lipéad 2", "Score 2": "Scór 2", "Label 3": "Lipéad 3", "Score 3": "Scór 3",
|
| 391 |
+
},
|
| 392 |
+
"lang_name": "Gaeilge"
|
| 393 |
+
},
|
| 394 |
+
"mt": {
|
| 395 |
+
"title": "Klassifikazzjoni tal-Immaġnijiet - Qabbel il-Mudelli kollha",
|
| 396 |
+
"description": "🧪 ŻRuns **il-mudelli kollha** ta' klassifikazzjoni tal-immaġnijiet ta' Hugging Face fuq immaġni waħda u qabbel ir-rizultati f'tabella interattiva.",
|
| 397 |
"upload": "Upload Image",
|
| 398 |
"run_button": "Run All Models",
|
| 399 |
+
"results": "Risultati",
|
| 400 |
"download": "Download CSV",
|
| 401 |
+
"columns": {
|
| 402 |
+
"Model": "Mudell", "Category": "Kategoriji", "Label 1": "Tikketta 1", "Score 1": "Punteġġ 1",
|
| 403 |
+
"Label 2": "Tikketta 2", "Score 2": "Punteġġ 2", "Label 3": "Tikketta 3", "Score 3": "Punteġġ 3",
|
| 404 |
+
},
|
| 405 |
+
"lang_name": "Malti"
|
| 406 |
+
},
|
| 407 |
+
"hr": {
|
| 408 |
+
"title": "Klasifikacija slika - Usporedite sve modele",
|
| 409 |
+
"description": "🧪 Pokrenite **sve** modele klasifikacije slika Hugging Face na jednoj slici i usporedite rezultate u interaktivnoj tablici.",
|
| 410 |
+
"upload": "Prenesi sliku",
|
| 411 |
+
"run_button": "Pokreni sve modele",
|
| 412 |
+
"results": "Rezultati",
|
| 413 |
+
"download": "Preuzmi CSV",
|
| 414 |
+
"columns": {
|
| 415 |
+
"Model": "Model", "Category": "Kategorije", "Label 1": "Oznaka 1", "Score 1": "Rezultat 1",
|
| 416 |
+
"Label 2": "Oznaka 2", "Score 2": "Rezultat 2", "Label 3": "Oznaka 3", "Score 3": "Rezultat 3",
|
| 417 |
+
},
|
| 418 |
+
"lang_name": "Hrvatski"
|
| 419 |
+
},
|
| 420 |
}
|
| 421 |
|
| 422 |
+
lang = st.selectbox("Language / Idioma", list(TRANSLATIONS.keys()), format_func=lambda x: TRANSLATIONS[x]["lang_name"])
|
| 423 |
t = TRANSLATIONS[lang]
|
| 424 |
|
| 425 |
MODELS = [
|
|
|
|
| 536 |
|
| 537 |
if results_data:
|
| 538 |
df = pd.DataFrame(results_data)
|
| 539 |
+
df = df.rename(columns=t["columns"])
|
| 540 |
st.subheader(f"{t['results']} ({len(results_data)} models)")
|
| 541 |
|
| 542 |
st.markdown("""
|
|
|
|
| 550 |
use_container_width=True,
|
| 551 |
hide_index=True,
|
| 552 |
column_config={
|
| 553 |
+
t["columns"]["Model"]: st.column_config.TextColumn(t["columns"]["Model"], width="medium"),
|
| 554 |
+
t["columns"]["Category"]: st.column_config.TextColumn(t["columns"]["Category"], width="small"),
|
| 555 |
+
t["columns"]["Label 1"]: st.column_config.TextColumn(t["columns"]["Label 1"], width="medium"),
|
| 556 |
+
t["columns"]["Score 1"]: st.column_config.TextColumn(t["columns"]["Score 1"], width="small"),
|
| 557 |
+
t["columns"]["Label 2"]: st.column_config.TextColumn(t["columns"]["Label 2"], width="medium"),
|
| 558 |
+
t["columns"]["Score 2"]: st.column_config.TextColumn(t["columns"]["Score 2"], width="small"),
|
| 559 |
+
t["columns"]["Label 3"]: st.column_config.TextColumn(t["columns"]["Label 3"], width="medium"),
|
| 560 |
+
t["columns"]["Score 3"]: st.column_config.TextColumn(t["columns"]["Score 3"], width="small"),
|
| 561 |
}
|
| 562 |
)
|
| 563 |
|