Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
~ app.py
Browse files
app.py
CHANGED
@@ -29,22 +29,17 @@
|
|
29 |
import gradio as gr
|
30 |
|
31 |
title = "Русско-черкесский переводчик"
|
32 |
-
description = """
|
33 |
-
Demo of a Russian-Circassian (Kabardian dialect) translator.
|
34 |
-
|
35 |
-
The translator is based on a machine learning model that has been trained on 45,000 Russian-Circassian sentence pairs.
|
36 |
-
|
37 |
-
It is based on Facebook's <a href="https://about.fb.com/news/2020/10/first-multilingual-machine-translation-model/">M2M-100 model</a>, and can also translate from 100 other languages to Circassian (English, French, Spanish, etc.), but less accurately.
|
38 |
-
|
39 |
-
The data corpus is constantly being expanded, and we need help in finding sentence sources, OCR, data cleaning, etc.
|
40 |
-
|
41 |
-
If you are interested in helping out with this project, please contact me at the link below.
|
42 |
-
"""
|
43 |
article = """<p style='text-align: center'><a href='https://arxiv.org/abs/1806.00187'>Scaling Neural Machine Translation</a> | <a href='https://github.com/pytorch/fairseq/'>Github Repo</a></p>"""
|
44 |
|
45 |
examples = [
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
48 |
]
|
49 |
|
50 |
gr.Interface.load("models/anzorq/m2m100_418M_ft_ru-kbd_44K", title=title, description=description, article=article, examples=examples).launch()
|
|
|
29 |
import gradio as gr
|
30 |
|
31 |
title = "Русско-черкесский переводчик"
|
32 |
+
description = "Demo of a Russian-Circassian (Kabardian dialect) translator. <br>It is based on Facebook's <a href=\"https://about.fb.com/news/2020/10/first-multilingual-machine-translation-model/\">M2M-100 model</a> machine learning model, and has been trained on 45,000 Russian-Circassian sentence pairs. <br>It can also translate from 100 other languages to Circassian (English, French, Spanish, etc.), but less accurately. <br>The data corpus is constantly being expanded, and we need help in finding sentence sources, OCR, data cleaning, etc. <br>If you are interested in helping out with this project, please contact me at the link below.<br><br>This is only a demo, not a finished product. Translation quality is still low and will improve with time and more data.<br>45,000 sentence pairs is not enough to create an accurate machine translation model, and more data is needed.<br>You can help by finding sentence sources (books, web pages, etc.), scanning books, OCRing documents, data cleaning, and other tasks.<br><br>If you are interested in helping out with this project, contact me at the link below."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
article = """<p style='text-align: center'><a href='https://arxiv.org/abs/1806.00187'>Scaling Neural Machine Translation</a> | <a href='https://github.com/pytorch/fairseq/'>Github Repo</a></p>"""
|
34 |
|
35 |
examples = [
|
36 |
+
["Мы идем домой"],
|
37 |
+
["Сегодня хорошая погода"],
|
38 |
+
["Дети играют во дворе"],
|
39 |
+
["We live in a big house"],
|
40 |
+
["Tu es une bonne personne."],
|
41 |
+
["أين تعيش؟"],
|
42 |
+
["Bir şeyler yapmak istiyorum."],
|
43 |
]
|
44 |
|
45 |
gr.Interface.load("models/anzorq/m2m100_418M_ft_ru-kbd_44K", title=title, description=description, article=article, examples=examples).launch()
|