Spaces:
Sleeping
Sleeping
made logo visible
Browse files
app.py
CHANGED
@@ -15,16 +15,17 @@ def translate(inp):
|
|
15 |
return translated_text
|
16 |
|
17 |
with gr.Blocks() as demo:
|
18 |
-
gr.
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
28 |
|
29 |
with gr.Column(variant="panel"):
|
30 |
inp_text = gr.Textbox(lines=5, placeholder="Enter Northern Sotho text (maximum 5 lines)", label="Input", elem_id="centered-input")
|
|
|
15 |
return translated_text
|
16 |
|
17 |
with gr.Blocks() as demo:
|
18 |
+
with gr.Row():
|
19 |
+
with gr.Column(scale=1):
|
20 |
+
pass
|
21 |
+
with gr.Column(scale=4, min_width=1000):
|
22 |
+
gr.Image("logo_transparent_small.png", elem_id="logo", show_label=False, width=500)
|
23 |
+
gr.Markdown("""
|
24 |
+
<h1 style='text-align: center;'>Northern Sotho to English Translation</h1>
|
25 |
+
<p style='text-align: center;'>This space provides a translation service from Northern Sotho to English using the M2M100 model, fine-tuned for low-resource languages. It supports researchers, linguists, and users working with Northern Sotho texts.</p>
|
26 |
+
""")
|
27 |
+
with gr.Column(scale=1):
|
28 |
+
pass
|
29 |
|
30 |
with gr.Column(variant="panel"):
|
31 |
inp_text = gr.Textbox(lines=5, placeholder="Enter Northern Sotho text (maximum 5 lines)", label="Input", elem_id="centered-input")
|