Spaces:
Runtime error
Runtime error
style: center title and image
Browse files* fix: `value` parameter for `gr.Textbox`
app.py
CHANGED
@@ -150,12 +150,13 @@ demo = gr.Blocks()
|
|
150 |
|
151 |
with demo:
|
152 |
gr.Markdown(
|
153 |
-
"
|
154 |
-
|
|
|
155 |
)
|
156 |
with gr.Row():
|
157 |
language_input = gr.Textbox(
|
158 |
-
|
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 |
-
|
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():
|