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
PhotoMaker
Commits
d7f119db
Commit
d7f119db
authored
Jul 30, 2024
by
chenpangpang
Browse files
feat: 优化提示
parent
653cf5f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PhotoMaker/gradio_demo/app.py
PhotoMaker/gradio_demo/app.py
+2
-2
No files found.
PhotoMaker/gradio_demo/app.py
View file @
d7f119db
...
@@ -204,9 +204,9 @@ with gr.Blocks(css=css) as demo:
...
@@ -204,9 +204,9 @@ with gr.Blocks(css=css) as demo:
)
)
uploaded_files
=
gr
.
Gallery
(
label
=
"你的图片"
,
visible
=
False
,
columns
=
5
,
rows
=
1
,
height
=
200
)
uploaded_files
=
gr
.
Gallery
(
label
=
"你的图片"
,
visible
=
False
,
columns
=
5
,
rows
=
1
,
height
=
200
)
with
gr
.
Column
(
visible
=
False
)
as
clear_button
:
with
gr
.
Column
(
visible
=
False
)
as
clear_button
:
remove_and_reupload
=
gr
.
ClearButton
(
value
=
"移除
以及
重新上传"
,
components
=
files
,
size
=
"sm"
)
remove_and_reupload
=
gr
.
ClearButton
(
value
=
"移除
并
重新上传"
,
components
=
files
,
size
=
"sm"
)
prompt
=
gr
.
Textbox
(
label
=
"Prompt"
,
prompt
=
gr
.
Textbox
(
label
=
"Prompt"
,
info
=
"尝试类似'a photo of a man/woman img'的词, 'img'是触发词"
,
info
=
"尝试类似'a photo of a man/woman img'的词, 'img'是触发词
,必须包含
"
,
placeholder
=
"A photo of a [man/woman img]..."
)
placeholder
=
"A photo of a [man/woman img]..."
)
style
=
gr
.
Dropdown
(
label
=
"风格"
,
choices
=
STYLE_NAMES
,
value
=
DEFAULT_STYLE_NAME
)
style
=
gr
.
Dropdown
(
label
=
"风格"
,
choices
=
STYLE_NAMES
,
value
=
DEFAULT_STYLE_NAME
)
aspect_ratio
=
gr
.
Dropdown
(
label
=
"输出纵横比"
,
choices
=
ASPECT_RATIO_LABELS
,
aspect_ratio
=
gr
.
Dropdown
(
label
=
"输出纵横比"
,
choices
=
ASPECT_RATIO_LABELS
,
...
...
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