Spaces:
Running
on
Zero
Running
on
Zero
tori29umai
commited on
Commit
•
881ee5b
1
Parent(s):
97219d6
app.py
Browse files- app.py +1 -11
- requirements.txt +1 -1
app.py
CHANGED
@@ -8,7 +8,6 @@ from diffusers import (
|
|
8 |
StableDiffusionXLControlNetImg2ImgPipeline,
|
9 |
DDIMScheduler,
|
10 |
)
|
11 |
-
from controlnet_aux import AnylineDetector
|
12 |
from compel import Compel, ReturnedEmbeddingsType
|
13 |
from PIL import Image
|
14 |
import os
|
@@ -146,16 +145,7 @@ class Img2Img:
|
|
146 |
|
147 |
with gr.Column():
|
148 |
output_image = gr.Image(type="pil", label="Output Image")
|
149 |
-
|
150 |
-
# インプットとアウトプットの設定
|
151 |
-
inputs = [
|
152 |
-
self.input_image_path,
|
153 |
-
prompt,
|
154 |
-
nega,
|
155 |
-
controlnet_conditioning_scale,
|
156 |
-
]
|
157 |
-
outputs = [output_image]
|
158 |
-
|
159 |
# ボタンのクリックイベントを設定
|
160 |
generate_button.click(
|
161 |
fn=self.predict,
|
|
|
8 |
StableDiffusionXLControlNetImg2ImgPipeline,
|
9 |
DDIMScheduler,
|
10 |
)
|
|
|
11 |
from compel import Compel, ReturnedEmbeddingsType
|
12 |
from PIL import Image
|
13 |
import os
|
|
|
145 |
|
146 |
with gr.Column():
|
147 |
output_image = gr.Image(type="pil", label="Output Image")
|
148 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
# ボタンのクリックイベントを設定
|
150 |
generate_button.click(
|
151 |
fn=self.predict,
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio==4.
|
2 |
accelerate
|
3 |
transformers
|
4 |
torchvision
|
|
|
1 |
+
gradio==4.29.0
|
2 |
accelerate
|
3 |
transformers
|
4 |
torchvision
|