feat: add 28 languages with translations
Browse files13 unmodified lines14151617181920212223242526272829303132333435363738110 unmodified lines1491501511521531547 unmodified lines16216316416516616716816917017117217317417513 unmodified lineslogin(token=HF_TOKEN)TRANSLATIONS = {"pt-pt": {"title": "Classificação de Imagens - Compara Todos os Modelos","description": "🧪 Executa **todos os modelos** de classificação de imagens do Hugging Face numa só imagem e compara os resultados num tabela interativa.","upload": "Carregar Imagem","run_button": "Executar Todos os Modelos","results": "Resultados","download": "Descarregar CSV",},"en-uk": {"title": "Image Classification - Compare All Models","description": "🧪 Run **all** Hugging Face image classification models on a single image and compare results in an interactive table.","upload": "Upload Image","run_button": "Run All Models","results": "Results","download": "Download CSV",}}lang = st.sidebar.selectbox("Language / Idioma", ["en-uk", "pt-pt"])t = TRANSLATIONS[lang]MODELS = [110 unmodified linesif results_data:df = pd.DataFrame(results_data)st.subheader(f"{t['results']} ({len(results_data)} models)")st.markdown("""7 unmodified linesuse_container_width=True,hide_index=True,column_config={"Model": st.column_config.TextColumn("Model", width="medium"),"Category": st.column_config.TextColumn("Category", width="small"),"Label 1": st.column_config.TextColumn("Label 1", width="medium"),"Score 1": st.column_config.TextColumn("Score 1", width="small"),"Label 2": st.column_config.TextColumn("Label 2", width="medium"),"Score 2": st.column_config.TextColumn("Score 2", width="small"),"Label 3": st.column_config.TextColumn("Label 3", width="medium"),"Score 3": st.column_config.TextColumn("Score 3", width="small"),})13 unmodified lines1415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425110 unmodified lines5365375385395405415427 unmodified lines55055155255355455555655755855956056156256313 unmodified lineslogin(token=HF_TOKEN)TRANSLATIONS = {"en-uk": {"title": "Image Classification - Compare All Models","description": "🧪 Run **all** Hugging Face image classification models on a single image and compare results in an interactive table.","upload": "Upload Image","run_button": "Run All Models","results": "Results","download": "Download CSV","columns": {"Model": "Model", "Category": "Category", "Label 1": "Label 1", "Score 1": "Score 1","Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",},"lang_name": "English"},"pt-pt": {"title": "Classificação de Imagens - Compara Todos os Modelos","description": "🧪 Executa **todos os modelos** de classificação de imagens do Hugging Face numa só imagem e compara os resultados numa tabela interativa.","upload": "Carregar Imagem","run_button": "Executar Todos os Modelos","results": "Resultados","download": "Descarregar CSV","columns": {"Model": "Modelo", "Category": "Categoria", "Label 1": "Label 1", "Score 1": "Score 1","Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",},"lang_name": "Português (PT)"},"pt-br": {"title": "Classificação de Imagens - Compare Todos os Modelos","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.","upload": "Carregar Imagem","run_button": "Executar Todos os Modelos","results": "Resultados","download": "Baixar CSV","columns": {"Model": "Modelo", "Category": "Categoria", "Label 1": "Label 1", "Score 1": "Score 1","Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",},"lang_name": "Português (BR)"},"zh-cn": {"title": "图像分类 - 比较所有模型","description": "🧪 在单张图像上运行**所有**Hugging Face图像分类模型,并在交互式表格中比较结果。","upload": "上传图片","run_button": "运行所有模型","results": "结果","download": "下载CSV","columns": {"Model": "模型", "Category": "类别", "Label 1": "标签1", "Score 1": "分数1","Label 2": "标签2", "Score 2": "分数2", "Label 3": "标签3", "Score 3": "分数3",},"lang_name": "中文"},"hi": {"title": "छवि वर्गीकरण - सभी मॉडल की तुलना करें","description": "🧪 एक ही छवि पर **सभी** Hugging Face छवि वर्गीकरण मॉडल चलाएं और परिणामों की एक इंटरैक्टिव टेबल में तुलना करें।","upload": "छवि अपलोड करें","run_button": "सभी मॉडल चलाएं","results": "परिणाम","download": "CSV डाउनलोड करें","columns": {"Model": "मॉडल", "Category": "श्रेणी", "Label 1": "लेबल 1", "Score 1": "स्कोर 1","Label 2": "लेबल 2", "Score 2": "स्कोर 2", "Label 3": "लेबल 3", "Score 3": "स्कोर 3",},"lang_name": "हिन्दी"},"es": {"title": "Clasificación de Imágenes - Compara Todos los Modelos","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.","upload": "Subir Imagen","run_button": "Ejecutar Todos los Modelos","results": "Resultados","download": "Descargar CSV","columns": {"Model": "Modelo", "Category": "Categoría", "Label 1": "Etiqueta 1", "Score 1": "Puntuación 1","Label 2": "Etiqueta 2", "Score 2": "Puntuación 2", "Label 3": "Etiqueta 3", "Score 3": "Puntuación 3",},"lang_name": "Español"},"ar": {"title": "تصنيف الصور - قارن جميع النماذج","description": "🧪 شغّل **جميع** نماذج تصنيف صور Hugging Face على صورة واحدة و��ارن النتائج في جدول تفاعلي.","upload": "تحميل صورة","run_button": "تشغيل جميع النماذج","results": "النتائج","download": "تحميل CSV","columns": {"Model": "النموذج", "Category": "الفئة", "Label 1": "التسمية 1", "Score 1": "النتيجة 1","Label 2": "التسمية 2", "Score 2": "النتيجة 2", "Label 3": "التسمية 3", "Score 3": "النتيجة 3",},"lang_name": "العربية"},"fr": {"title": "Classification d'Images - Comparer Tous les Modèles","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.","upload": "Télécharger une Image","run_button": "Exécuter Tous les Modèles","results": "Résultats","download": "Télécharger CSV","columns": {"Model": "Modèle", "Category": "Catégorie", "Label 1": "Étiquette 1", "Score 1": "Score 1","Label 2": "Étiquette 2", "Score 2": "Score 2", "Label 3": "Étiquette 3", "Score 3": "Score 3",},"lang_name": "Français"},"bn": {"title": "ছবি শ্রেণীবিভাগ - সব মডেল তুলনা করুন","description": "🧪 একটি একক ছবিতে **সমস্ত** Hugging Face ছবি শ্রেণীবিভাগ মডেল চালান এবং একটি ইন্টারেক্টিভ টেবিলে ফলাফল তুলনা করুন।","upload": "ছবি আপলোড করুন","run_button": "সব মডেল চালান","results": "ফলাফল","download": "CSV ডাউনলোড করুন","columns": {"Model": "মডেল", "Category": "বিভাগ", "Label 1": "লেবেল 1", "Score 1": "স্কোর 1","Label 2": "লেবেল 2", "Score 2": "স্কোর 2", "Label 3": "লেবেল 3", "Score 3": "স্কোর 3",},"lang_name": "বাংলা"},"ru": {"title": "Классификация изображений - Сравните все модели","description": "🧪 Запустите **все** модели классификации изображений Hugging Face на одном изображении и сравните результаты в интерактивной таблице.","upload": "Загрузить изображение","run_button": "Запустить все модели","results": "Результаты","download": "Скачать CSV","columns": {"Model": "Модель", "Category": "Категория", "Label 1": "Метка 1", "Score 1": "Оценка 1","Label 2": "Метка 2", "Score 2": "Оценка 2", "Label 3": "Метка 3", "Score 3": "Оценка 3",},"lang_name": "Русский"},"id": {"title": "Klasifikasi Gambar - Bandingkan Semua Model","description": "🧪 Jalankan **semua** model klasifikasi gambar Hugging Face pada satu gambar dan bandingkan hasilnya dalam tabel interaktif.","upload": "Unggah Gambar","run_button": "Jalankan Semua Model","results": "Hasil","download": "Unduh CSV","columns": {"Model": "Model", "Category": "Kategori", "Label 1": "Label 1", "Score 1": "Skor 1","Label 2": "Label 2", "Score 2": "Skor 2", "Label 3": "Label 3", "Score 3": "Skor 3",},"lang_name": "Bahasa Indonesia"},"de": {"title": "Bildklassifizierung - Alle Modelle vergleichen","description": "🧪 Führen Sie **alle** Hugging Face Bildklassifizierungsmodelle auf einem einzigen Bild aus und vergleichen Sie die Ergebnisse in einer interaktiven Tabelle.","upload": "Bild hochladen","run_button": "Alle Modelle ausführen","results": "Ergebnisse","download": "CSV herunterladen","columns": {"Model": "Modell", "Category": "Kategorie", "Label 1": "Label 1", "Score 1": "Bewertung 1","Label 2": "Label 2", "Score 2": "Bewertung 2", "Label 3": "Label 3", "Score 3": "Bewertung 3",},"lang_name": "Deutsch"},"nl": {"title": "Afbeeldingsclassificatie - Vergelijk Alle Modellen","description": "🧪 Voer **alle** Hugging Face-afbeeldingsclassificatiemodellen uit op één enkele afbeelding en vergelijk de resultaten in een interactieve tabel.","upload": "Afbeelding uploaden","run_button": "Alle modellen uitvoeren","results": "Resultaten","download": "CSV downloaden","columns": {"Model": "Model", "Category": "Categorie", "Label 1": "Label 1", "Score 1": "Score 1","Label 2": "Label 2", "Score 2": "Score 2", "Label 3": "Label 3", "Score 3": "Score 3",},"lang_name": "Nederlands"},"it": {"title": "Classificazione Immagini - Confronta Tutti i Modelli","description": "🧪 Esegui **tutti** i modelli di classificazione immagini Hugging Face su una singola immagine e confronta i risultati in una tabella interattiva.","upload": "Carica Immagine","run_button": "Esegui Tutti i Modelli","results": "Risultati","download": "Scarica CSV","columns": {"Model": "Modello", "Category": "Categoria", "Label 1": "Etichetta 1", "Score 1": "Punteggio 1","Label 2": "Etichetta 2", "Score 2": "Punteggio 2", "Label 3": "Etichetta 3", "Score 3": "Punteggio 3",},"lang_name": "Italiano"},"pl": {"title": "Klasyfikacja Obrazów - Porównaj Wszystkie Modele","description": "🧪 Uruchom **wszystkie** modele klasyfikacji obrazów Hugging Face na jednym obrazie i porównaj wyniki w tabeli interaktywnej.","upload": "Prześlij obraz","run_button": "Uruchom wszystkie modele","results": "Wyniki","download": "Pobierz CSV","columns": {"Model": "Model", "Category": "Kategoria", "Label 1": "Etykieta 1", "Score 1": "Wynik 1","Label 2": "Etykieta 2", "Score 2": "Wynik 2", "Label 3": "Etykieta 3", "Score 3": "Wynik 3",},"lang_name": "Polski"},"ro": {"title": "Clasificarea Imaginilor - Compară Toate Modelele","description": "🧪 Rulează **toate** modelele de clasificare a imaginilor Hugging Face pe o singură imagine și compară rezultatele într-un tabel interactiv.","upload": "Încărcați imaginea","run_button": "Rulează toate modelele","results": "Rezultate","download": "Descarcă CSV","columns": {"Model": "Model", "Category": "Categorie", "Label 1": "Etichetă 1", "Score 1": "Scor 1","Label 2": "Etichetă 2", "Score 2": "Scor 2", "Label 3": "Etichetă 3", "Score 3": "Scor 3",},"lang_name": "Română"},"hu": {"title": "Képbesorolás - Összes Modell Összehasonlítása","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.","upload": "Kép feltöltése","run_button": "Összes modell futtatása","results": "Eredmények","download": "CSV letöltése","columns": {"Model": "Modell", "Category": "Kategoria", "Label 1": "Címke 1", "Score 1": "Pontszám 1","Label 2": "Címke 2", "Score 2": "Pontszám 2", "Label 3": "Címke 3", "Score 3": "Pontszám 3",},"lang_name": "Magyar"},"cs": {"title": "Klasifikace obrázků - Porovnejte všechny modely","description": "🧪 Spusťte **všechny** modely klasifikace obrázků Hugging Face na jednom obrázku a porovnejte výsledky v interaktivní tabulce.","upload": "Nahrát obrázek","run_button": "Spustit všechny modely","results": "Výsledky","download": "Stáhnout CSV","columns": {"Model": "Model", "Category": "Kategorie", "Label 1": "Štítek 1", "Score 1": "Skóre 1","Label 2": "Štítek 2", "Score 2": "Skóre 2", "Label 3": "Štítek 3", "Score 3": "Skóre 3",},"lang_name": "Čeština"},"sk": {"title": "Klasifikácia obrázkov - Porovnajte všetky modely","description": "🧪 Spustite **všetky** modely klasifikácie obrázkov Hugging Face na jednom obrázku a porovnajte výsledky v interaktívnej tabuľke.","upload": "Nahrať obrázok","run_button": "Spustiť všetky modely","results": "Výsledky","download": "Stiahnuť CSV","columns": {"Model": "Model", "Category": "Kategória", "Label 1": "Štítok 1", "Score 1": "Skóre 1","Label 2": "Štítok 2", "Score 2": "Skóre 2", "Label 3": "Štítok 3", "Score 3": "Skóre 3",},"lang_name": "Slovenčina"},"sl": {"title": "Klasifikacija slik - Primerjajte vse modele","description": "🧪 Zaženite **vse** modele klasifikacije slik Hugging Face na eni sliki in primerjajte rezultate v interaktivni tabeli.","upload": "Naloži sliko","run_button": "Zaženi vse modele","results": "Rezultati","download": "Prenesi CSV","columns": {"Model": "Model", "Category": "Kategorije", "Label 1": "Oznaka 1", "Score 1": "Točke 1","Label 2": "Oznaka 2", "Score 2": "Točke 2", "Label 3": "Oznaka 3", "Score 3": "Točke 3",},"lang_name": "Slovenščina"},"da": {"title": "Billedklassifikation - Sammenlign Alle Modeller","description": "🧪 Kør **alle** Hugging Face billedklassifikationsmodeller på et enkelt billede og sammenlign resultaterne i en interaktiv tabel.","upload": "Upload billede","run_button": "Kør alle modeller","results": "Resultater","download": "Download CSV","columns": {"Model": "Model", "Category": "Kategori", "Label 1": "Etiket 1", "Score 1": "Point 1","Label 2": "Etiket 2", "Score 2": "Point 2", "Label 3": "Etiket 3", "Score 3": "Point 3",},"lang_name": "Dansk"},"sv": {"title": "Bildklassificering - Jämför Alla Modeller","description": "🧪 Kör **alla** Hugging Face bildklassificeringsmodeller på en enda bild och jämför resultaten i en interaktiv tabell.","upload": "Ladda upp bild","run_button": "Kör alla modeller","results": "Resultat","download": "Ladda ner CSV","columns": {"Model": "Modell", "Category": "Kategori", "Label 1": "Etikett 1", "Score 1": "Poäng 1","Label 2": "Etikett 2", "Score 2": "Poäng 2", "Label 3": "Etikett 3", "Score 3": "Poäng 3",},"lang_name": "Svenska"},"fi": {"title": "Kuvaluokittelu - Vertaa Kaikkia Malleja","description": "🧪 Suorita **kaikki** Hugging Face -kuvaluokittelumallit yhdellä kuvalla ja vertaa tuloksia vuorovaikutteisessa taulukossa.","upload": "Lataa kuva","run_button": "Suorita kaikki mallit","results": "Tulokset","download": "Lataa CSV","columns": {"Model": "Malli", "Category": "Luokka", "Label 1": "Tunniste 1", "Score 1": "Pisteet 1","Label 2": "Tunniste 2", "Score 2": "Pisteet 2", "Label 3": "Tunniste 3", "Score 3": "Pisteet 3",},"lang_name": "Suomi"},"el": {"title": "Ταξινόμηση Εικόνων - Σύγκριση Όλων των Μοντέλων","description": "🧪 Εκτελέστε **όλα** τα μοντέλα ταξινόμησης εικόνων του Hugging Face σε μία εικόνα και συγκρίνετε τα αποτελέσματα σε έναν διαδραστικό πίνακα.","upload": "Μεταφόρτωση εικόνας","run_button": "Εκτέλεση όλων των μοντέλων","results": "Αποτελέσματα","download": "Λήψη CSV","columns": {"Model": "Μοντέλο", "Category": "Κατηγορία", "Label 1": "Ετικέτα 1", "Score 1": "Βαθμολογία 1","Label 2": "Ετικέτα 2", "Score 2": "Βαθμολογία 2", "Label 3": "Ετικέτα 3", "Score 3": "Βαθμολογία 3",},"lang_name": "Ελληνικά"},"bg": {"title": "Класификация на изображения - Сравнете всички модели","description": "🧪 Стартирайте **всички** модели за класификация на изображения от Hugging Face на едно изображение и сравнете резултатите в интерактивна таблица.","upload": "Качете изображение","run_button": "Стартирайте всички модели","results": "Резултати","download": "Изтеглете CSV","columns": {"Model": "Модел", "Category": "Категория", "Label 1": "Етикет 1", "Score 1": "Резултат 1","Label 2": "Етикет 2", "Score 2": "Резултат 2", "Label 3": "Етикет 3", "Score 3": "Резултат 3",},"lang_name": "Български"},"lv": {"title": "Attēlu klasifikācija - Salīdziniet visus modeļus","description": "🧪 Palaidiet **visus** Hugging Face attēlu klasifikācijas modeļus uz viena attēla un salīdziniet rezultātus interaktīvā tabulā.","upload": "Augšupielādēt attēlu","run_button": "Palaist visus modeļus","results": "Rezultāti","download": "Lejupielādēt CSV","columns": {"Model": "Modelis", "Category": "Kategorijas", "Label 1": "Etiķete 1", "Score 1": "Rezultāts 1","Label 2": "Etiķete 2", "Score 2": "Rezultāts 2", "Label 3": "Etiķete 3", "Score 3": "Rezultāts 3",},"lang_name": "Latviešu"},"lt": {"title": "Vaizdų klasifikavimas - Palyginkite visus modelius","description": "🧪 Paleiskite **visus** Hugging Face vaizdų klasifikavimo modelius vienoje nuotraukoje ir palyginkite rezultatus interaktyvioje lentelėje.","upload": "Įkelti vaizdą","run_button": "Paleisti visus modelius","results": "Rezultatai","download": "Atsisiųsti CSV","columns": {"Model": "Modelis", "Category": "Kategorijos", "Label 1": "Etiketė 1", "Score 1": "Rezultatas 1","Label 2": "Etiketė 2", "Score 2": "Rezultatas 2", "Label 3": "Etiketė 3", "Score 3": "Rezultatas 3",},"lang_name": "Lietuvių"},"et": {"title": "Pildiklassifikatsioon - Võrdle kõiki mudeleid","description": "🧪 Käivitage **kõik** Hugging Face pildiklassifikatsiooni mudelid ühel pildil ja võrrelge tulemusi interaktiivses tabelis.","upload": "Laadi pilt üles","run_button": "Käivita kõik mudelid","results": "Tulemused","download": "Laadi CSV alla","columns": {"Model": "Mudel", "Category": "Kategooria", "Label 1": "Silt 1", "Score 1": "Skoor 1","Label 2": "Silt 2", "Score 2": "Skoor 2", "Label 3": "Silt 3", "Score 3": "Skoor 3",},"lang_name": "Eesti"},"ga": {"title": "Rangú Imagacha - Déan Comparáid idir na Samhlaithe go léir","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.","upload": "Uaslódáil Íomhá","run_button": "Rith gach Samhail","results": "Torthaí","download": "Íosluchtaigh CSV","columns": {"Model": "Samhail", "Category": "Catagóir", "Label 1": "Lipéad 1", "Score 1": "Scór 1","Label 2": "Lipéad 2", "Score 2": "Scór 2", "Label 3": "Lipéad 3", "Score 3": "Scór 3",},"lang_name": "Gaeilge"},"mt": {"title": "Klassifikazzjoni tal-Immaġnijiet - Qabbel il-Mudelli kollha","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.","upload": "Upload Image","run_button": "Run All Models","results": "Risultati","download": "Download CSV","columns": {"Model": "Mudell", "Category": "Kategoriji", "Label 1": "Tikketta 1", "Score 1": "Punteġġ 1","Label 2": "Tikketta 2", "Score 2": "Punteġġ 2", "Label 3": "Tikketta 3", "Score 3": "Punteġġ 3",},"lang_name": "Malti"},"hr": {"title": "Klasifikacija slika - Usporedite sve modele","description": "🧪 Pokrenite **sve** modele klasifikacije slika Hugging Face na jednoj slici i usporedite rezultate u interaktivnoj tablici.","upload": "Prenesi sliku","run_button": "Pokreni sve modele","results": "Rezultati","download": "Preuzmi CSV","columns": {"Model": "Model", "Category": "Kategorije", "Label 1": "Oznaka 1", "Score 1": "Rezultat 1","Label 2": "Oznaka 2", "Score 2": "Rezultat 2", "Label 3": "Oznaka 3", "Score 3": "Rezultat 3",},"lang_name": "Hrvatski"},}lang = st.selectbox("Language / Idioma", list(TRANSLATIONS.keys()), format_func=lambda x: TRANSLATIONS[x]["lang_name"])t = TRANSLATIONS[lang]MODELS = [110 unmodified linesif results_data:df = pd.DataFrame(results_data)df = df.rename(columns=t["columns"])st.subheader(f"{t['results']} ({len(results_data)} models)")st.markdown("""7 unmodified linesuse_container_width=True,hide_index=True,column_config={t["columns"]["Model"]: st.column_config.TextColumn(t["columns"]["Model"], width="medium"),t["columns"]["Category"]: st.column_config.TextColumn(t["columns"]["Category"], width="small"),t["columns"]["Label 1"]: st.column_config.TextColumn(t["columns"]["Label 1"], width="medium"),t["columns"]["Score 1"]: st.column_config.TextColumn(t["columns"]["Score 1"], width="small"),t["columns"]["Label 2"]: st.column_config.TextColumn(t["columns"]["Label 2"], width="medium"),t["columns"]["Score 2"]: st.column_config.TextColumn(t["columns"]["Score 2"], width="small"),t["columns"]["Label 3"]: st.column_config.TextColumn(t["columns"]["Label 3"], width="medium"),t["columns"]["Score 3"]: st.column_config.TextColumn(t["columns"]["Score 3"], width="small"),})
app.py+403-15