Spaces:
Running
on
Zero
Running
on
Zero
BleachNick
commited on
Commit
·
6067c25
1
Parent(s):
c780814
upload requirements.txt
Browse files- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -12,7 +12,7 @@ pipe = StableDiffusion3InstructPix2PixPipeline.from_pretrained("BleachNick/SD3_U
|
|
12 |
pipe = pipe.to("cuda")
|
13 |
|
14 |
|
15 |
-
@spaces.GPU(duration=
|
16 |
def generate(image_mask, prompt, num_inference_steps=50, image_guidance_scale=1.6, guidance_scale=7.5, seed=255):
|
17 |
def is_blank_mask(mask_img):
|
18 |
mask_array = np.array(mask_img.convert('L')) # Convert to luminance to simplify the check
|
|
|
12 |
pipe = pipe.to("cuda")
|
13 |
|
14 |
|
15 |
+
@spaces.GPU(duration=60)
|
16 |
def generate(image_mask, prompt, num_inference_steps=50, image_guidance_scale=1.6, guidance_scale=7.5, seed=255):
|
17 |
def is_blank_mask(mask_img):
|
18 |
mask_array = np.array(mask_img.convert('L')) # Convert to luminance to simplify the check
|
requirements.txt
CHANGED
@@ -5,4 +5,4 @@ transformers
|
|
5 |
xformers
|
6 |
sentencepiece
|
7 |
-e git+https://github.com/HaozheZhao/UltraEdit.git#egg=diffusers&subdirectory=diffusers
|
8 |
-
gradio==4.
|
|
|
5 |
xformers
|
6 |
sentencepiece
|
7 |
-e git+https://github.com/HaozheZhao/UltraEdit.git#egg=diffusers&subdirectory=diffusers
|
8 |
+
gradio==4.37.2
|