zionia commited on
Commit
8076cbb
·
verified ·
1 Parent(s): 0e7ef21

made logo visible

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -15,16 +15,17 @@ def translate(inp):
15
  return translated_text
16
 
17
  with gr.Blocks() as demo:
18
- gr.Markdown("""
19
- <div style='text-align: center; margin-bottom: 20px;'>
20
- <img src='file/logo_transparent_small.png' alt='Logo' width='150' style='display: block; margin: 0 auto;'/>
21
- </div>
22
- """)
23
-
24
- gr.Markdown("""
25
- <h1 style='text-align: center;'>Northern Sotho to English Translation</h1>
26
- <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>
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")