Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 122 |
|
| 123 |
with gr.Tab("Image to image"):
|
| 124 |
with gr.Group():
|
| 125 |
-
image = gr.Image(label="Image", height=256,
|
| 126 |
strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
|
| 127 |
|
| 128 |
auto_prefix.change(lambda x: gr.update(placeholder=f"{prefix} [your prompt]" if x else "[Your prompt]"), inputs=auto_prefix, outputs=prompt, queue=False)
|
|
|
|
| 122 |
|
| 123 |
with gr.Tab("Image to image"):
|
| 124 |
with gr.Group():
|
| 125 |
+
image = gr.Image(label="Image", height=256, type="pil")
|
| 126 |
strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
|
| 127 |
|
| 128 |
auto_prefix.change(lambda x: gr.update(placeholder=f"{prefix} [your prompt]" if x else "[Your prompt]"), inputs=auto_prefix, outputs=prompt, queue=False)
|