Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,6 @@ def generate(
|
|
59 |
model = 'SG161222/Realistic_Vision_V6.0_B1_noVAE',
|
60 |
vaecall = 'stabilityai/sd-vae-ft-mse',
|
61 |
lora = 'amazonaws-la/juliette',
|
62 |
-
url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg",
|
63 |
lora_scale: float = 0.7,
|
64 |
):
|
65 |
if torch.cuda.is_available():
|
@@ -76,8 +75,7 @@ def generate(
|
|
76 |
pipe.load_lora_weights(lora)
|
77 |
pipe.fuse_lora(lora_scale=0.7)
|
78 |
|
79 |
-
response = requests.get(
|
80 |
-
print("Valor:" url)
|
81 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
82 |
init_image = init_image.resize((1024, 1024))
|
83 |
|
|
|
59 |
model = 'SG161222/Realistic_Vision_V6.0_B1_noVAE',
|
60 |
vaecall = 'stabilityai/sd-vae-ft-mse',
|
61 |
lora = 'amazonaws-la/juliette',
|
|
|
62 |
lora_scale: float = 0.7,
|
63 |
):
|
64 |
if torch.cuda.is_available():
|
|
|
75 |
pipe.load_lora_weights(lora)
|
76 |
pipe.fuse_lora(lora_scale=0.7)
|
77 |
|
78 |
+
response = requests.get("https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg")
|
|
|
79 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
80 |
init_image = init_image.resize((1024, 1024))
|
81 |
|