Spaces:
Runtime error
Runtime error
Jasmeet Singh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,11 +63,11 @@ iface = gr.Interface(
|
|
| 63 |
fn=generate_image,
|
| 64 |
inputs=[
|
| 65 |
gr.Radio(choices=["Text-to-Image", "Image-to-Image"], label="Mode"), # Toggle between modes
|
| 66 |
-
gr.Textbox(label="Prompt"), # Input text prompt
|
| 67 |
-
gr.Slider(0, 1, step=0.01, label="Strength
|
| 68 |
-
gr.Number(label="Seed"), # Seed for reproducibility
|
| 69 |
gr.Slider(1, 1000, step=1, label="Number of Inference Steps"), # Slider for inference steps
|
| 70 |
-
gr.Image(type='filepath', label='Input Image for Image-to-Image'), # Input image without optional flag
|
| 71 |
],
|
| 72 |
outputs=gr.Image(label="Generated Image"), # Output generated image
|
| 73 |
title="Stable Diffusion Image Generator",
|
|
|
|
| 63 |
fn=generate_image,
|
| 64 |
inputs=[
|
| 65 |
gr.Radio(choices=["Text-to-Image", "Image-to-Image"], label="Mode"), # Toggle between modes
|
| 66 |
+
gr.Textbox(label="Text Prompt"), # Input text prompt
|
| 67 |
+
gr.Slider(0, 1, step=0.01, label="Strength : Note: set strength between 0.01 to 0.9, For Image-2-Image: Strength ~ 1 means that the output will be further from the input image. Strength ~ 0 means that the output will be closer to the input image."), # Slider for strength
|
| 68 |
+
gr.Number(label="Seed (for reproducibility)"), # Seed for reproducibility
|
| 69 |
gr.Slider(1, 1000, step=1, label="Number of Inference Steps"), # Slider for inference steps
|
| 70 |
+
gr.Image(type='filepath', label='Input Image Only for Image-to-Image'), # Input image without optional flag
|
| 71 |
],
|
| 72 |
outputs=gr.Image(label="Generated Image"), # Output generated image
|
| 73 |
title="Stable Diffusion Image Generator",
|