Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update
Browse files
app.py
CHANGED
@@ -509,10 +509,10 @@ def set_default_language(request: gr.Request) -> gr.Dropdown:
|
|
509 |
|
510 |
|
511 |
def update_language(language: str) -> gr.Markdown:
|
512 |
-
if language == "
|
513 |
-
return gr.Markdown(value=INTRODUCTION_TEXT)
|
514 |
-
else:
|
515 |
return gr.Markdown(value=INTRODUCTION_TEXT_JP)
|
|
|
|
|
516 |
|
517 |
|
518 |
with gr.Blocks(css=custom_css, css_paths="style.css", theme=gr.themes.Base()) as demo:
|
|
|
509 |
|
510 |
|
511 |
def update_language(language: str) -> gr.Markdown:
|
512 |
+
if language == "🇯🇵 JP":
|
|
|
|
|
513 |
return gr.Markdown(value=INTRODUCTION_TEXT_JP)
|
514 |
+
else:
|
515 |
+
return gr.Markdown(value=INTRODUCTION_TEXT)
|
516 |
|
517 |
|
518 |
with gr.Blocks(css=custom_css, css_paths="style.css", theme=gr.themes.Base()) as demo:
|