zionia commited on
Commit
14aaaee
·
verified ·
1 Parent(s): 1b6e0ad

update centering

Browse files
Files changed (1) hide show
  1. app.py +18 -11
app.py CHANGED
@@ -15,7 +15,7 @@ with gr.Blocks() as demo:
15
  with gr.Row():
16
  with gr.Column(scale=1):
17
  pass
18
- with gr.Column(scale=2):
19
  gr.Image("logo_transparent_small.png", elem_id="logo", show_label=False, width=150)
20
  gr.Markdown(
21
  """
@@ -29,7 +29,7 @@ with gr.Blocks() as demo:
29
  with gr.Row():
30
  with gr.Column(scale=1):
31
  pass
32
- with gr.Column(scale=2):
33
  inp_text = gr.Textbox(lines=5, placeholder="Enter text (maximum 5 lines)", label="Input")
34
  direction = gr.Radio(choices=['en->ss', 'ss->en'], label='Direction')
35
  translate_button = gr.Button("Translate")
@@ -38,15 +38,22 @@ with gr.Blocks() as demo:
38
  with gr.Column(scale=1):
39
  pass
40
 
41
- gr.Markdown(
42
- """
43
- <div style='text-align: center;'>
44
- <a href='https://github.com/dsfsi/en-ss-m2m100-combo' target='_blank'>En-Ss GitHub</a> |
45
- <a href='https://github.com/dsfsi/ss-en-m2m100-combo' target='_blank'>Ss-En GitHub</a> |
46
- <a href='https://docs.google.com/forms/d/e/1FAIpQLSf7S36dyAUPx2egmXbFpnTBuzoRulhL5Elu-N1eoMhaO7v10w/viewform' target='_blank'>Feedback Form</a>
47
- </div>
48
- """
49
- )
 
 
 
 
 
 
 
50
 
51
  with gr.Accordion("More Information", open=False):
52
  gr.Markdown("""
 
15
  with gr.Row():
16
  with gr.Column(scale=1):
17
  pass
18
+ with gr.Column(scale=4):
19
  gr.Image("logo_transparent_small.png", elem_id="logo", show_label=False, width=150)
20
  gr.Markdown(
21
  """
 
29
  with gr.Row():
30
  with gr.Column(scale=1):
31
  pass
32
+ with gr.Column(scale=4):
33
  inp_text = gr.Textbox(lines=5, placeholder="Enter text (maximum 5 lines)", label="Input")
34
  direction = gr.Radio(choices=['en->ss', 'ss->en'], label='Direction')
35
  translate_button = gr.Button("Translate")
 
38
  with gr.Column(scale=1):
39
  pass
40
 
41
+ with gr.Row():
42
+ with gr.Column(scale=1):
43
+ pass
44
+ with gr.Column(scale=4):
45
+ gr.Markdown(
46
+ """
47
+ <div style='text-align: center;'>
48
+ <a href='https://github.com/dsfsi/en-ss-m2m100-combo' target='_blank'>En-Ss GitHub</a> |
49
+ <a href='https://github.com/dsfsi/ss-en-m2m100-combo' target='_blank'>Ss-En GitHub</a> |
50
+ <a href='https://docs.google.com/forms/d/e/1FAIpQLSf7S36dyAUPx2egmXbFpnTBuzoRulhL5Elu-N1eoMhaO7v10w/viewform' target='_blank'>Feedback Form</a>
51
+ </div>
52
+ """
53
+ )
54
+ with gr.Column(scale=1):
55
+ pass
56
+
57
 
58
  with gr.Accordion("More Information", open=False):
59
  gr.Markdown("""