tfwang commited on
Commit
62717d4
1 Parent(s): ccf29e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,7 +211,7 @@ def create_argparser():
211
 
212
  image = gr.outputs.Image(type="pil", label="Sampled results")
213
  css = ".output-image{height: 528px !important} .output-carousel .output-image{height:272px !important} a{text-decoration: underline}"
214
- demo = gr.Interface(fn=run, inputs=[
215
  gr.inputs.Image(type="pil", label="Input Sketch" ) ,
216
  # gr.Image(image_mode="L", source="canvas", type="pil", shape=(256,256), invert_colors=False, tool="editor"),
217
  gr.inputs.Radio(label="Input Mode - The type of your input", choices=["mask", "sketch"],default="sketch"),
@@ -224,5 +224,5 @@ demo = gr.Interface(fn=run, inputs=[
224
  title="Generate images from sketches with PITI",
225
  description="<div>By uploading a sketch map or a semantic map and pressing submit, you can generate images based on your input.</div>")
226
 
227
- demo.launch(enable_queue=True)
228
 
 
211
 
212
  image = gr.outputs.Image(type="pil", label="Sampled results")
213
  css = ".output-image{height: 528px !important} .output-carousel .output-image{height:272px !important} a{text-decoration: underline}"
214
+ iface = gr.Interface(fn=run, inputs=[
215
  gr.inputs.Image(type="pil", label="Input Sketch" ) ,
216
  # gr.Image(image_mode="L", source="canvas", type="pil", shape=(256,256), invert_colors=False, tool="editor"),
217
  gr.inputs.Radio(label="Input Mode - The type of your input", choices=["mask", "sketch"],default="sketch"),
 
224
  title="Generate images from sketches with PITI",
225
  description="<div>By uploading a sketch map or a semantic map and pressing submit, you can generate images based on your input.</div>")
226
 
227
+ iface.launch(enable_queue=True)
228