Spaces:
Sleeping
Sleeping
make logo visible
Browse files
app.py
CHANGED
@@ -16,8 +16,11 @@ def translate(inp):
|
|
16 |
translated_text = tokenizer.decode(translated_tokens[0], skip_special_tokens=True)
|
17 |
return translated_text
|
18 |
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
21 |
description = """
|
22 |
<p style='text-align: center;'>
|
23 |
Northern Sotho to English Translation
|
@@ -53,7 +56,7 @@ with gr.Interface(
|
|
53 |
inputs=gr.components.Textbox(lines=5, placeholder="Enter Northern Sotho text (maximum 5 lines)", label="Input"),
|
54 |
outputs="text"
|
55 |
) as iface:
|
56 |
-
|
57 |
iface.launch(enable_queue=True)
|
58 |
|
59 |
authors = """
|
|
|
16 |
translated_text = tokenizer.decode(translated_tokens[0], skip_special_tokens=True)
|
17 |
return translated_text
|
18 |
|
19 |
+
logo = """
|
20 |
+
<div style='text-align: center;'>
|
21 |
+
<img src='file/logo_transparent_small.png' alt='Logo' width='150'/>
|
22 |
+
</div>
|
23 |
+
"""
|
24 |
description = """
|
25 |
<p style='text-align: center;'>
|
26 |
Northern Sotho to English Translation
|
|
|
56 |
inputs=gr.components.Textbox(lines=5, placeholder="Enter Northern Sotho text (maximum 5 lines)", label="Input"),
|
57 |
outputs="text"
|
58 |
) as iface:
|
59 |
+
gr.markdown(logo, unsafe_allow_html=True)
|
60 |
iface.launch(enable_queue=True)
|
61 |
|
62 |
authors = """
|