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: ...@@ -155,16 +155,16 @@ with gr.Blocks(css=css) as Kolors:
with gr.Column(elem_id="col-left"): with gr.Column(elem_id="col-left"):
with gr.Row(): with gr.Row():
prompt = gr.Textbox( prompt = gr.Textbox(
label="Prompt", label="提示词",
placeholder="Enter your prompt", placeholder="请输入提示词",
lines=2 lines=2
) )
with gr.Row(): with gr.Row():
image = gr.Image(label="Image", type="pil") image = gr.Image(label="图像", type="pil")
with gr.Accordion("Advanced Settings", open=False): with gr.Accordion("高级设置", open=False):
negative_prompt = gr.Textbox( negative_prompt = gr.Textbox(
label="Negative prompt", label="负面提示词",
placeholder="Enter a negative prompt", placeholder="请输入负面提示词",
visible=True, visible=True,
) )
seed = gr.Slider( seed = gr.Slider(
...@@ -174,7 +174,7 @@ with gr.Blocks(css=css) as Kolors: ...@@ -174,7 +174,7 @@ with gr.Blocks(css=css) as Kolors:
step=1, step=1,
value=0, value=0,
) )
randomize_seed = gr.Checkbox(label="Randomize seed", value=True) randomize_seed = gr.Checkbox(label="随机seed", value=True)
with gr.Row(): with gr.Row():
guidance_scale = gr.Slider( guidance_scale = gr.Slider(
label="Guidance scale", label="Guidance scale",
...@@ -191,11 +191,11 @@ with gr.Blocks(css=css) as Kolors: ...@@ -191,11 +191,11 @@ with gr.Blocks(css=css) as Kolors:
value=25, value=25,
) )
with gr.Row(): with gr.Row():
button = gr.Button("Run", elem_id="button") button = gr.Button("运行", elem_id="button")
with gr.Column(elem_id="col-right"): with gr.Column(elem_id="col-right"):
result = gr.Image(label="Result", show_label=False) result = gr.Image(label="输出", show_label=False)
seed_used = gr.Number(label="Seed Used") seed_used = gr.Number(label="使用的Seed")
with gr.Row(): with gr.Row():
gr.Examples( gr.Examples(
......
<div style="display: flex; justify-content: center; align-items: center; text-align: center;"> <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
<div> <div>
<h1>Kolors FaceID</h1> <h1>Kolors FaceID</h1>
<span>Kolors-IP-Adapter-FaceID-Plus based on Kolors-Basemodel.</span>
<br> <br>
<div style="display: flex; justify-content: center; align-items: center; text-align: center;"> <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; <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