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
aae34b1f
Commit
aae34b1f
authored
Jul 29, 2024
by
chenpangpang
Browse files
feat: 去除spaces
parent
9a73404f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
PhotoMaker/gradio_demo/app.py
PhotoMaker/gradio_demo/app.py
+0
-3
No files found.
PhotoMaker/gradio_demo/app.py
View file @
aae34b1f
...
...
@@ -8,7 +8,6 @@ from diffusers.utils import load_image
from
diffusers
import
EulerDiscreteScheduler
from
huggingface_hub
import
hf_hub_download
import
spaces
import
gradio
as
gr
from
photomaker
import
PhotoMakerStableDiffusionXLPipeline
...
...
@@ -60,8 +59,6 @@ pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
pipe
.
fuse_lora
()
pipe
.
to
(
device
)
@
spaces
.
GPU
def
generate_image
(
upload_images
,
prompt
,
negative_prompt
,
aspect_ratio_name
,
style_name
,
num_steps
,
style_strength_ratio
,
num_outputs
,
guidance_scale
,
seed
,
progress
=
gr
.
Progress
(
track_tqdm
=
True
)):
# check the trigger word
...
...
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