Commit 82913e01 authored by chenpangpang's avatar chenpangpang
Browse files

feat: gradio页面改成中文

parent 76f6f261
......@@ -155,16 +155,16 @@ with gr.Blocks(css=css) as Kolors:
with gr.Column(elem_id="col-left"):
with gr.Row():
prompt = gr.Textbox(
label="Prompt",
placeholder="Enter your prompt",
label="提示词",
placeholder="请输入提示词",
lines=2
)
with gr.Row():
image = gr.Image(label="Image", type="pil")
with gr.Accordion("Advanced Settings", open=False):
image = gr.Image(label="图像", type="pil")
with gr.Accordion("高级设置", open=False):
negative_prompt = gr.Textbox(
label="Negative prompt",
placeholder="Enter a negative prompt",
label="负面提示词",
placeholder="请输入负面提示词",
visible=True,
)
seed = gr.Slider(
......@@ -174,7 +174,7 @@ with gr.Blocks(css=css) as Kolors:
step=1,
value=0,
)
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
randomize_seed = gr.Checkbox(label="随机seed", value=True)
with gr.Row():
guidance_scale = gr.Slider(
label="Guidance scale",
......@@ -191,11 +191,11 @@ with gr.Blocks(css=css) as Kolors:
value=25,
)
with gr.Row():
button = gr.Button("Run", elem_id="button")
button = gr.Button("运行", elem_id="button")
with gr.Column(elem_id="col-right"):
result = gr.Image(label="Result", show_label=False)
seed_used = gr.Number(label="Seed Used")
result = gr.Image(label="输出", show_label=False)
seed_used = gr.Number(label="使用的Seed")
with gr.Row():
gr.Examples(
......
<div style="display: flex; justify-content: center; align-items: center; text-align: center;">
<div>
<h1>Kolors FaceID</h1>
<span>Kolors-IP-Adapter-FaceID-Plus based on Kolors-Basemodel.</span>
<br>
<div style="display: flex; justify-content: center; align-items: center; text-align: center;">
<a href="https://github.com/Kwai-Kolors/Kolors/tree/master/ipadapter_FaceID"><img src="https://img.shields.io/static/v1?label=Kolors Code&message=Github&color=blue&logo=github-pages"></a> &ensp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment