Spaces:
Sleeping
Sleeping
add dsfsi info
Browse files
app.py
CHANGED
@@ -11,14 +11,37 @@ def translate(inp, direction):
|
|
11 |
res = translater_ss_en(inp, max_length=512, early_stopping=True)[0]['translation_text']
|
12 |
return res
|
13 |
|
|
|
|
|
|
|
|
|
|
|
14 |
description = """
|
|
|
|
|
|
|
15 |
<p>
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</p>
|
20 |
"""
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
examples = [
|
24 |
["Thank you for your help", "en->ss"],
|
@@ -43,4 +66,8 @@ iface = gr.Interface(
|
|
43 |
|
44 |
iface.launch(enable_queue=True)
|
45 |
|
|
|
|
|
|
|
|
|
46 |
|
|
|
11 |
res = translater_ss_en(inp, max_length=512, early_stopping=True)[0]['translation_text']
|
12 |
return res
|
13 |
|
14 |
+
with gr.Row():
|
15 |
+
gr.Column()
|
16 |
+
gr.Column(gr.Image("logo_transparent_small.png", alt="DSFSI Logo", elem_id="logo", label=None))
|
17 |
+
gr.Column()
|
18 |
+
|
19 |
description = """
|
20 |
+
<p style='text-align: center;'>
|
21 |
+
Siswati to English Translation
|
22 |
+
</p>
|
23 |
<p>
|
24 |
+
This space provides a bidirectional translation service from Siswati to English.
|
25 |
+
</p>
|
26 |
+
"""
|
27 |
+
|
28 |
+
article = """
|
29 |
+
<div style='text-align: center;'>
|
30 |
+
<a href='https://github.com/dsfsi/en-ss-m2m100-combo' target='_blank'>En-Ss GitHub</a> |
|
31 |
+
<a href='https://github.com/dsfsi/ss-en-m2m100-combo' target='_blank'>Ss-En GitHub</a> |
|
32 |
+
<a href='https://docs.google.com/forms/d/e/1FAIpQLSf7S36dyAUPx2egmXbFpnTBuzoRulhL5Elu-N1eoMhaO7v10w/viewform' target='_blank'>Feedback Form</a>
|
33 |
+
</div>
|
34 |
+
<br/>
|
35 |
+
<p style='text-align: center;'>
|
36 |
+
<h2>Translate | Siswati to English</h2>
|
37 |
</p>
|
38 |
"""
|
39 |
+
|
40 |
+
authors = """
|
41 |
+
<div style='text-align: center;'>
|
42 |
+
Authors: Vukosi Marivate, Richard Lastrucci
|
43 |
+
</div>
|
44 |
+
"""
|
45 |
|
46 |
examples = [
|
47 |
["Thank you for your help", "en->ss"],
|
|
|
66 |
|
67 |
iface.launch(enable_queue=True)
|
68 |
|
69 |
+
gr.markdown(authors, unsafe_allow_html=True)
|
70 |
+
gr.markdown(citation, unsafe_allow_html=True)
|
71 |
+
gr.markdown(doi, unsafe_allow_html=True)
|
72 |
+
|
73 |
|