Xinonria commited on
Commit
ae69757
·
verified ·
1 Parent(s): 66cfc4d

增加遗漏的i18n文本

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -277,7 +277,7 @@ with gr.Blocks(title="Rubii TTS", theme=gr.themes.Soft()) as demo:
277
  with gr.Row():
278
  # kind = gr.Dropdown(choices=["原神", "崩坏星穹铁道","鸣潮","明日方舟","其他"], value="原神", label="请选择角色类别")
279
  choices = ["原神", "崩坏星穹铁道", "鸣潮"]
280
- kind = gr.Dropdown(choices=[((name), name) for name in choices], value="原神", label=gettext("选择角色类别"))
281
  query = gr.Textbox(label=gettext("搜索角色"), value="", lines=1, max_lines=1, interactive=True)
282
  with gr.Blocks():
283
  gallery = gr.Gallery(
 
277
  with gr.Row():
278
  # kind = gr.Dropdown(choices=["原神", "崩坏星穹铁道","鸣潮","明日方舟","其他"], value="原神", label="请选择角色类别")
279
  choices = ["原神", "崩坏星穹铁道", "鸣潮"]
280
+ kind = gr.Dropdown(choices=[(gettext(name), name) for name in choices], value="原神", label=gettext("选择角色类别"))
281
  query = gr.Textbox(label=gettext("搜索角色"), value="", lines=1, max_lines=1, interactive=True)
282
  with gr.Blocks():
283
  gallery = gr.Gallery(