Spaces:
Paused
Paused
gokaygokay
commited on
Commit
•
5df2e96
1
Parent(s):
f8ce661
Update app.py
Browse files
app.py
CHANGED
@@ -229,19 +229,19 @@ def process_image(input_image, prompt, negative_prompt, resolution=2048, num_inf
|
|
229 |
|
230 |
# Simple options
|
231 |
simple_options = [
|
232 |
-
gr.
|
233 |
-
gr.
|
234 |
-
gr.
|
235 |
-
gr.
|
236 |
-
gr.
|
237 |
-
gr.
|
238 |
]
|
239 |
|
240 |
# Create the Gradio interface
|
241 |
iface = gr.Interface(
|
242 |
fn=gradio_process_image,
|
243 |
inputs=simple_options,
|
244 |
-
outputs=gr.
|
245 |
title="Image Processing with Stable Diffusion",
|
246 |
description="Upload an image and adjust the settings to process it using Stable Diffusion."
|
247 |
)
|
|
|
229 |
|
230 |
# Simple options
|
231 |
simple_options = [
|
232 |
+
gr.Image(type="pil", label="Input Image"),
|
233 |
+
gr.Slider(minimum=2048, maximum=3072, step=512, default=2048, label="Resolution"),
|
234 |
+
gr.Slider(minimum=10, maximum=100, step=10, default=20, label="Inference Steps"),
|
235 |
+
gr.Slider(minimum=0.0, maximum=1.0, step=0.05, default=0.35, label="Strength"),
|
236 |
+
gr.Slider(minimum=0.0, maximum=1.0, step=0.1, default=0, label="HDR"),
|
237 |
+
gr.Slider(minimum=1, maximum=10, step=0.1, default=3, label="Guidance Scale")
|
238 |
]
|
239 |
|
240 |
# Create the Gradio interface
|
241 |
iface = gr.Interface(
|
242 |
fn=gradio_process_image,
|
243 |
inputs=simple_options,
|
244 |
+
outputs=gr.Image(type="pil", label="Output Image"),
|
245 |
title="Image Processing with Stable Diffusion",
|
246 |
description="Upload an image and adjust the settings to process it using Stable Diffusion."
|
247 |
)
|