Update app.py
Browse files
app.py
CHANGED
@@ -30,12 +30,6 @@ with gr.Blocks() as demo:
|
|
30 |
greet_btn.click(fn=add_hello_world, inputs=name_input, outputs=output_text)
|
31 |
reset_btn.click(fn=lambda: i18n("john_doe"), inputs=None, outputs=name_input)
|
32 |
|
33 |
-
gr.Markdown("""
|
34 |
-
This demo shows Gradio's internationalization (i18n) functionality.
|
35 |
-
The interface automatically displays text in the user's browser language
|
36 |
-
(if available in our translations), or falls back to English.
|
37 |
-
""")
|
38 |
-
|
39 |
if __name__ == "__main__":
|
40 |
# pass i18n to the launch function
|
41 |
demo.launch(i18n=i18n)
|
|
|
30 |
greet_btn.click(fn=add_hello_world, inputs=name_input, outputs=output_text)
|
31 |
reset_btn.click(fn=lambda: i18n("john_doe"), inputs=None, outputs=name_input)
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
if __name__ == "__main__":
|
34 |
# pass i18n to the launch function
|
35 |
demo.launch(i18n=i18n)
|