Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -211,7 +211,7 @@ def create_argparser():
|
|
| 211 |
image = gr.outputs.Image(type="pil", label="Sampled results")
|
| 212 |
css = ".output-image{height: 528px !important} .output-carousel .output-image{height:272px !important} a{text-decoration: underline}"
|
| 213 |
iface = gr.Interface(fn=run, inputs=[
|
| 214 |
-
gr.inputs.Image(type="pil", label="Input Sketch" ) ,
|
| 215 |
# gr.Image(image_mode="L", source="canvas", type="pil", shape=(256,256), invert_colors=False, tool="editor"),
|
| 216 |
gr.inputs.Radio(label="Input Mode - The type of your input", choices=["mask", "sketch"],default="sketch"),
|
| 217 |
gr.inputs.Slider(label="sample_c - The strength of classifier-free guidance",default=1.4, minimum=1.0, maximum=2.0),
|
|
@@ -221,7 +221,7 @@ iface = gr.Interface(fn=run, inputs=[
|
|
| 221 |
outputs=[image],
|
| 222 |
css=css,
|
| 223 |
title="Generate images from sketches with PITI",
|
| 224 |
-
description="<div>By uploading a sketch map or a semantic map and pressing submit, you can generate images based on your input.</div>",
|
| 225 |
examples=[["1.png", "sketch", 1.3, 4, 100], ["2.png", "sketch", 1.3, 4, 100],["3.png", "sketch", 1.3, 4, 100],["4.png", "mask", 1.3, 4, 100],["5.png", "mask", 1.3, 4, 100],["6.png", "mask", 1.3, 4, 100]])
|
| 226 |
|
| 227 |
iface.launch(enable_queue=True)
|
|
|
|
| 211 |
image = gr.outputs.Image(type="pil", label="Sampled results")
|
| 212 |
css = ".output-image{height: 528px !important} .output-carousel .output-image{height:272px !important} a{text-decoration: underline}"
|
| 213 |
iface = gr.Interface(fn=run, inputs=[
|
| 214 |
+
gr.inputs.Image(type="pil", label="Input Sketch or Mask" ) ,
|
| 215 |
# gr.Image(image_mode="L", source="canvas", type="pil", shape=(256,256), invert_colors=False, tool="editor"),
|
| 216 |
gr.inputs.Radio(label="Input Mode - The type of your input", choices=["mask", "sketch"],default="sketch"),
|
| 217 |
gr.inputs.Slider(label="sample_c - The strength of classifier-free guidance",default=1.4, minimum=1.0, maximum=2.0),
|
|
|
|
| 221 |
outputs=[image],
|
| 222 |
css=css,
|
| 223 |
title="Generate images from sketches with PITI",
|
| 224 |
+
description="<div>By uploading a sketch map or a semantic map and pressing submit, you can generate images based on your input. As the computing device is CPU, the running may be slow.</div>",
|
| 225 |
examples=[["1.png", "sketch", 1.3, 4, 100], ["2.png", "sketch", 1.3, 4, 100],["3.png", "sketch", 1.3, 4, 100],["4.png", "mask", 1.3, 4, 100],["5.png", "mask", 1.3, 4, 100],["6.png", "mask", 1.3, 4, 100]])
|
| 226 |
|
| 227 |
iface.launch(enable_queue=True)
|