AriNubar commited on
Commit
82a88c2
·
1 Parent(s): 253223d

add sponsors + collapsible info section

Browse files
Files changed (3) hide show
  1. app.py +20 -7
  2. img/mkhitaryan-varjaran.png +0 -0
  3. img/teaov.png +0 -0
app.py CHANGED
@@ -95,12 +95,16 @@ with gr.Blocks(title="Արեւմտահայերէն-Անգլերէն Մեքենա
95
  <h2 style='margin-bottom: 5px'>Արեւմտահայերէն-Անգլերէն Մեքենական Թարգմանիչ | Western Armenian-English Machine Translation</h2>
96
  <h3 style='margin-bottom: 5px'>Ստեղծող՝ | Created By: <a href='https://www.arinubar.com' target='_blank'>Ari Nubar Boyacıoğlu</a></h3>
97
  <p style="font-size: 0.7rem">Եթէ այս գործիքը կարողացաւ ձեզ օգտակար հանդիսանալ, բարելաւելու համար հաճեցէք սուրճի մը փոխարժէքը նուիրել․ | If this tool has proven useful to you, please consider making a donation. <a href='https://www.paypal.com/donate/?hosted_button_id=RRBCV3GQJ7D8N' target='_blank'>PayPal</a> | <a href='https://buymeacoffee.com/arinubar' target='_blank'>Buy Me a Coffee</a></p>
98
- <hr style='margin-top: 5px; margin-bottom: 5px'>
99
- <p>Հոս կը ցուցադրուի առաջին արեւմտահայերէն-անգլերէն մեքենական թարգմանիչը, որ կարուցուած է Մեթայի (Ֆեյսպուքի) 'No Language Left Behind' տիպարի հիման վրայ։ Թարգմանութեան տիպարը կ'աշխատի CPU-ի մը մէջ, ուրեմն նախադասութեան մը թարգմանութիւնը կրնայ տեւել մօտաւորապէս <strong>40-60 երկվայրկեան</strong>։ Ձեր գնահատութիւնները եւ քննադատութիւնները շատ կարեւոր են տիպարի թարգմանութեան որակը բարելաւելու համար։</p>
100
- <p>Դուք թարգմանութեան որակին մասին ձեր գնահատութիւնը կրնաք տալ երեք գնահատութեան կոճակներէ մէկուն սեղմելով։ Լեզուի, մուտքի եւ ելքի գրութիւններու, յարաչափերու եւ ձեր գնահատութեան մասին տուեալները պիտի պահուին։ Գնահատութիւնը պարտաւոր չէ։</p>
101
- <p>This is the demo of the first Western Armenian-English neural machine translation system which is based on Meta's 'No Language Left Behind' model. The model runs on a CPU, so it might take approximately <strong>40-60 seconds</strong> to translate a single sentence. Your feedback and comments are very important for us to improve the quality of the translation.</p>
102
- <p>You can give your feedback about the quality of the translation by clicking one of the three feedback buttons. Information about source, target languages, input and output texts, parameters and your feedback about quality will be saved. It is not mandatory to give feedback.</p>
103
  """)
 
 
 
 
 
 
 
 
 
104
 
105
  with gr.Row():
106
  with gr.Column():
@@ -119,6 +123,7 @@ with gr.Blocks(title="Արեւմտահայերէն-Անգլերէն Մեքենա
119
  flag_good_btn = gr.Button(value="😊 Լաւ | Good", size="sm")
120
  flag_average_btn = gr.Button(value="😐 Միջակ | Average", size="sm")
121
  flag_bad_btn = gr.Button(value="☹️ Վատ | Bad", size="sm")
 
122
  with gr.Row():
123
  gr.Markdown("""
124
  ## Յարաչափեր | Parameters
@@ -150,9 +155,17 @@ with gr.Blocks(title="Արեւմտահայերէն-Անգլերէն Մեքենա
150
  <div style="display: flex; justify-content: center; align-items: center; margin-bottom: 5px;">
151
  <h3>Աջակցութեամբ՝ | Supported By: </h3>
152
  </div>
153
- <div style="display: flex; justify-content: center; align-items: center;">
 
 
 
 
154
  <a href="https://gulbenkian.pt/armenian-communities/">
155
- <img src="file/img/gulbenkian.svg" alt="Calouste Gulbenkian Foundation - Armenian Communities" style="background-color: #414142; padding: 10px" />
 
 
 
 
156
  </a>
157
  </div>
158
 
 
95
  <h2 style='margin-bottom: 5px'>Արեւմտահայերէն-Անգլերէն Մեքենական Թարգմանիչ | Western Armenian-English Machine Translation</h2>
96
  <h3 style='margin-bottom: 5px'>Ստեղծող՝ | Created By: <a href='https://www.arinubar.com' target='_blank'>Ari Nubar Boyacıoğlu</a></h3>
97
  <p style="font-size: 0.7rem">Եթէ այս գործիքը կարողացաւ ձեզ օգտակար հանդիսանալ, բարելաւելու համար հաճեցէք սուրճի մը փոխարժէքը նուիրել․ | If this tool has proven useful to you, please consider making a donation. <a href='https://www.paypal.com/donate/?hosted_button_id=RRBCV3GQJ7D8N' target='_blank'>PayPal</a> | <a href='https://buymeacoffee.com/arinubar' target='_blank'>Buy Me a Coffee</a></p>
 
 
 
 
 
98
  """)
99
+
100
+ with gr.Accordion("Թարգմանիչի Մասին | Information about the Translator", open=False):
101
+ gr.HTML("""
102
+ <p>Հոս կը ցուցադրուի առաջին արեւմտահայերէն-անգլերէն մեքենական թարգմանիչը, որ կարուցուած է Մեթայի (Ֆեյսպուքի) 'No Language Left Behind' տիպարի հիման վրայ։ Թարգմանութեան տիպարը կ'աշխատի CPU-ի մը մէջ, ուրեմն նախադասութեան մը թարգմանութիւնը կրնայ տեւել մօտաւորապէս <strong>40-60 երկվայրկեան</strong>։ Ձեր գնահատութիւնները եւ քննադատութիւնները շատ կարեւոր են տիպարի թարգմանութեան որակը բարելաւելու համար։</p>
103
+ <p>Դուք թարգմանութեան որակին մասին ձեր գնահատութիւնը կրնաք տալ երեք գնահատութեան կոճակներէ մէկուն սեղմելով։ Լեզուի, մուտքի եւ ելքի գրութիւններու, յարաչափերու եւ ձեր գնահատութեան մասին տուեալները պիտի պահուին։ Գնահատութիւնը պարտաւոր չէ։</p>
104
+ <hr style='margin-top: 5px; margin-bottom: 5px'>
105
+ <p>This is the demo of the first Western Armenian-English neural machine translation system which is based on Meta's 'No Language Left Behind' model. The model runs on a CPU, so it might take approximately <strong>40-60 seconds</strong> to translate a single sentence. Your feedback and comments are very important for us to improve the quality of the translation.</p>
106
+ <p>You can give your feedback about the quality of the translation by clicking one of the three feedback buttons. Information about source, target languages, input and output texts, parameters and your feedback about quality will be saved. It is not mandatory to give feedback.</p>
107
+ """)
108
 
109
  with gr.Row():
110
  with gr.Column():
 
123
  flag_good_btn = gr.Button(value="😊 Լաւ | Good", size="sm")
124
  flag_average_btn = gr.Button(value="😐 Միջակ | Average", size="sm")
125
  flag_bad_btn = gr.Button(value="☹️ Վատ | Bad", size="sm")
126
+
127
  with gr.Row():
128
  gr.Markdown("""
129
  ## Յարաչափեր | Parameters
 
155
  <div style="display: flex; justify-content: center; align-items: center; margin-bottom: 5px;">
156
  <h3>Աջակցութեամբ՝ | Supported By: </h3>
157
  </div>
158
+ <div style="display: flex; justify-content: center; align-items: center; background-color: #0000007a; border-radius: 20px;">
159
+ <a href="#">
160
+ <img src="file/img/mkhitaryan-varjaran.png" alt="Pangalti Mkhitaryan School" style="padding: 10px; margin: 20px; width: 150px;" />
161
+ </a>
162
+
163
  <a href="https://gulbenkian.pt/armenian-communities/">
164
+ <img src="file/img/gulbenkian.svg" alt="Calouste Gulbenkian Foundation - Armenian Communities" style="padding: 10px; margin: 20px;" />
165
+ </a>
166
+
167
+ <a href="http://www.teaov.org/">
168
+ <img src="file/img/teaov.png" alt="Turkish-Armenian Minority Schools Teachers Foundation" style="padding: 10px; margin: 20px; width: 200px; padding-right:35px;" />
169
  </a>
170
  </div>
171
 
img/mkhitaryan-varjaran.png ADDED
img/teaov.png ADDED