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
8d3ab218
Commit
8d3ab218
authored
Jul 29, 2024
by
chenpangpang
Browse files
feat: 去除spaces
parent
8e32112a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
PhotoMaker/gradio_demo/app_v2.py
PhotoMaker/gradio_demo/app_v2.py
+0
-3
No files found.
PhotoMaker/gradio_demo/app_v2.py
View file @
8d3ab218
...
@@ -9,7 +9,6 @@ from diffusers.utils import load_image
...
@@ -9,7 +9,6 @@ from diffusers.utils import load_image
from
diffusers
import
EulerDiscreteScheduler
,
T2IAdapter
from
diffusers
import
EulerDiscreteScheduler
,
T2IAdapter
from
huggingface_hub
import
hf_hub_download
from
huggingface_hub
import
hf_hub_download
import
spaces
import
gradio
as
gr
import
gradio
as
gr
from
photomaker
import
PhotoMakerStableDiffusionXLAdapterPipeline
from
photomaker
import
PhotoMakerStableDiffusionXLAdapterPipeline
...
@@ -72,8 +71,6 @@ pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
...
@@ -72,8 +71,6 @@ pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
pipe
.
fuse_lora
()
pipe
.
fuse_lora
()
pipe
.
to
(
device
)
pipe
.
to
(
device
)
@
spaces
.
GPU
def
generate_image
(
def
generate_image
(
upload_images
,
upload_images
,
prompt
,
prompt
,
...
...
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