Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
Kolors-FaceID
Commits
82913e01
Commit
82913e01
authored
Aug 21, 2024
by
chenpangpang
Browse files
feat: gradio页面改成中文
parent
76f6f261
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
Kolors-FaceID/app.py
Kolors-FaceID/app.py
+10
-10
Kolors-FaceID/assets/title.md
Kolors-FaceID/assets/title.md
+0
-1
No files found.
Kolors-FaceID/app.py
View file @
82913e01
...
@@ -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 Us
ed"
)
seed_used
=
gr
.
Number
(
label
=
"
使用的Se
ed"
)
with
gr
.
Row
():
with
gr
.
Row
():
gr
.
Examples
(
gr
.
Examples
(
...
...
Kolors-FaceID/assets/title.md
View file @
82913e01
<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>
 
<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>
 
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment