wseo commited on
Commit
04250ef
1 Parent(s): b5072a5

style: center title and image

Browse files

* fix: `value` parameter for `gr.Textbox`

Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -150,12 +150,13 @@ demo = gr.Blocks()
150
 
151
  with demo:
152
  gr.Markdown(
153
- "# HuggingFace i18n made easy\n"
154
- '<img style="float: right;" src="hfkr_logo.png" height="10em">'
 
155
  )
156
  with gr.Row():
157
  language_input = gr.Textbox(
158
- default="Korean",
159
  label=" / ".join([
160
  "Target language", "langue cible",
161
  "目标语", "Idioma Objetivo",
@@ -163,7 +164,7 @@ with demo:
163
  ])
164
  )
165
  filepath_input = gr.Textbox(
166
- default="tasks/masked_language_modeling.md",
167
  label="File path of transformers document"
168
  )
169
  with gr.Tabs():
 
150
 
151
  with demo:
152
  gr.Markdown(
153
+ '<img style="display: block; margin-left: auto; margin-right: auto; height: 10em;"'
154
+ ' src="file/hfkr_logo.png"/>\n\n'
155
+ '<h1 style="text-align: center;">HuggingFace i18n made easy</h1>'
156
  )
157
  with gr.Row():
158
  language_input = gr.Textbox(
159
+ value="Korean",
160
  label=" / ".join([
161
  "Target language", "langue cible",
162
  "目标语", "Idioma Objetivo",
 
164
  ])
165
  )
166
  filepath_input = gr.Textbox(
167
+ value="tasks/masked_language_modeling.md",
168
  label="File path of transformers document"
169
  )
170
  with gr.Tabs():