Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def infer(image_in, prompt):
|
|
| 36 |
prompt = prompt
|
| 37 |
negative_prompt = ""
|
| 38 |
|
| 39 |
-
image = load_image(
|
| 40 |
|
| 41 |
controlnet_conditioning_scale = 0.5 # recommended for good generalization
|
| 42 |
|
|
@@ -50,9 +50,9 @@ def infer(image_in, prompt):
|
|
| 50 |
prompt, negative_prompt=negative_prompt, image=image, controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 51 |
).images
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
return
|
| 56 |
|
| 57 |
with gr.Blocks() as demo:
|
| 58 |
with gr.Column():
|
|
|
|
| 36 |
prompt = prompt
|
| 37 |
negative_prompt = ""
|
| 38 |
|
| 39 |
+
image = load_image(image_in)
|
| 40 |
|
| 41 |
controlnet_conditioning_scale = 0.5 # recommended for good generalization
|
| 42 |
|
|
|
|
| 50 |
prompt, negative_prompt=negative_prompt, image=image, controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 51 |
).images
|
| 52 |
|
| 53 |
+
images[0].save(f"hug_lab.png")
|
| 54 |
|
| 55 |
+
return f"hug_lab.png"
|
| 56 |
|
| 57 |
with gr.Blocks() as demo:
|
| 58 |
with gr.Column():
|