Spaces:
Running
on
Zero
Running
on
Zero
刘虹雨
commited on
Commit
·
e0991c0
1
Parent(s):
409cac4
update code
Browse files- app.py +3 -2
- demo_data/.DS_Store +0 -0
app.py
CHANGED
@@ -127,13 +127,14 @@ os.environ["MEDIAPIPE_DISABLE_GPU"] = "1" # Disable GPU for MediaPipe
|
|
127 |
|
128 |
|
129 |
# 🔧 Set CUDA_HOME before anything else
|
|
|
|
|
130 |
|
131 |
|
132 |
from diffusers import (
|
133 |
StableDiffusionControlNetImg2ImgPipeline,
|
134 |
ControlNetModel,
|
135 |
DPMSolverMultistepScheduler,
|
136 |
-
AutoencoderKL,
|
137 |
)
|
138 |
|
139 |
|
@@ -946,7 +947,7 @@ def launch_gradio_app():
|
|
946 |
minimum=0.5, maximum=0.85, value=0.75, step=0.05,
|
947 |
label="SDEdit Strength"
|
948 |
)
|
949 |
-
style_button = gr.Button("🎨 Apply Style", interactive=False)
|
950 |
gr.Markdown(
|
951 |
"⬅️ Please click **Process Image** first. "
|
952 |
"**Apply Style** will transform the image in the **Processed Image** panel "
|
|
|
127 |
|
128 |
|
129 |
# 🔧 Set CUDA_HOME before anything else
|
130 |
+
os.system("pip uninstall diffusers")
|
131 |
+
os.system("pip install diffusers==0.20.1")
|
132 |
|
133 |
|
134 |
from diffusers import (
|
135 |
StableDiffusionControlNetImg2ImgPipeline,
|
136 |
ControlNetModel,
|
137 |
DPMSolverMultistepScheduler,
|
|
|
138 |
)
|
139 |
|
140 |
|
|
|
947 |
minimum=0.5, maximum=0.85, value=0.75, step=0.05,
|
948 |
label="SDEdit Strength"
|
949 |
)
|
950 |
+
style_button = gr.Button("🎨 Apply Style", interactive=False, elem_id="style_generate", variant='primary')
|
951 |
gr.Markdown(
|
952 |
"⬅️ Please click **Process Image** first. "
|
953 |
"**Apply Style** will transform the image in the **Processed Image** panel "
|
demo_data/.DS_Store
CHANGED
Binary files a/demo_data/.DS_Store and b/demo_data/.DS_Store differ
|
|